Previous Topic: OPSRC and OPSRS VariablesNext Topic: OPSGETVL Function


ENQ Information Returned in the EDQ

The data that is returned in the EDQ for the C and Q function codes has the following format:

Word Number: 1

Contains the jobname of the ENQ requestor or the jobname of the ENQ provider and requestor that is delimited with a slash.

Length: 17

Word Number: 2

Contains the system name of the ENQ requestor.

Length: 8

Word Number: 3

Contains the ENQ major name (QNAME).

Length: 8

Word Number: 4

Contains the scope of the ENQ request:

SYS

A scope of SYSTEM

SYSS

A scope of SYSTEMS

STEP

A scope of STEP

UNKN

Should never occur

Length: 4

Word Number: 5

Contains the global (G) or local (L) request.

Length: 1

Word Number: 6

Contains the ASID of ENQ requester or the ASID of ENQ provider and requestor that is delimited with a slash in hexadecimal format.

Length: 9

Word Number: 7

Contains the TCB address of ENQ requestor in hexadecimal format.

Length: 8

Word Number: 8

Contains the status of O = Owns the resource or W = Waiting for the resource.

Length: 1

Word Number: 9

Contains the type of S = Shared or E = Exclusive.

Length: 1

Word Number: 10

Contains the device number (if the request was a RESERVE request) or N/A.

Length: 1

Word Number: 11

Contains the ENQ minor name (RNAME).

Note: The minor name (RNAME) may contain embedded blanks; therefore, treat everything after the tenth word as part of the RNAME. Each record contains at least 11 words.

Length: 255

Examples: OPSENQ function in various scenarios