gtps1m2bSystem Macros

DHASHC-Hash Resource Name

Use this system macro to hash a resource name to obtain one or more of the following:

Format




Notes:

  1. Required if LUNAME=R1.

label
A symbolic name can be assigned to the macro statement.

LUNAME=Rv
A register (R1 through R7, or R14) that contains the address of a 16-byte resource name to hash.

HASHSLOT=Rw
A register (R1 through R7, or R14) that receives the ordinal number of the NCB directory record.

RNHPTADR=Rx
A register (R1 through R7, or R14) that receives the address of the RNHPT entry.

PRIME
A register that points to the fullword that contains the prime hash number.

NO
Use the largest prime number that is less than the value specified for the MAXPRIM parameter in the SNAKEY macro, which is the number of RNHPT entries defined in the TPF system. This is the default.
Note:
Use the default value when you specify the RNHPTADR parameter.

Ry
A register (R2 through R7) that contains the address of the prime hash number.
Note:
If you specified the RNHPTADR parameter, the prime hash number cannot be greater than the largest prime number that is less than the value specified for the MAXPRIM parameter in the SNAKEY macro.

WORKREG
A register to preserve R1 across calls to the DHASHC macro. This parameter must be coded if LUNAME=R1 is specified.

NO
R1 is not preserved across calls to the DHASHC macro. This is the default.

Rz
A register (R2 through R7) that preserves R1 across calls to the DHASHC macro.

Entry Requirements

R9 must contain the address of the requesting ECB.

Return Conditions

Programming Considerations

Examples

None.