Previous Topic: OPSRC and OPSRS Variables

Next Topic: OPSGETVL Function

ENQ Information Returned in the EDQ

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

Word Number: 1

Contains the jobname of the ENQ requestor or the jobname of the ENQ provider and requestor 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:

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 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, everything after the tenth word should be treated as part of the RNAME. Each record contains at least eleven words, however, there may be more.

Length: 255

Examples: OPSENQ function in various scenarios