The following is the format of the data returned in the EDQ for the C and Q function codes:
Contains the jobname of the ENQ requestor or the jobname of the ENQ provider and requestor delimited with a slash.
Length: 17
Contains the system name of the ENQ requestor.
Length: 8
Contains the ENQ major name (QNAME).
Length: 8
Contains the scope of the ENQ request:
Length: 4
Contains the global (G) or local (L) request.
Length: 1
Contains the ASID of ENQ requester or the ASID of ENQ provider and requestor delimited with a slash in hexadecimal format.
Length: 9
Contains the TCB address of ENQ requestor in hexadecimal format.
Length: 8
Contains the status of O = Owns the resource or W = Waiting for the resource.
Length: 1
Contains the type of S = Shared or E = Exclusive.
Length: 1
Contains the device number (if the request was a RESERVE request) or N/A.
Length: 1
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
temp = OPSENQ(“E”,,”RESOURCEA”,”E”,”SYSTEM”,”HAVE”) . . . OPS/REXX code that requires serialization . . . temp = OPSENQ(“D”,,”RESOURCEA”)
lines=OPSENQ('Q','SYSDSN','SYS1.OPS.SUPPRESS.RULES',,'SYSTEM')
lines=OPSENQ('Q','SPFEDIT','MYUID.*',,'ALL')
lines=OPSENQ('C','*','*',,'ALL')
CATALOG/T01403A CA11 SYSIGGV2 SYS L 001F/01E8 006DCBC8 O S 2E6A ICF.IDI.USERCAT2
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |