[label] ENQ (qname-addr
,rname-addr
,E|S
[,rname-length]
[,{STEP|SYSTEM|SYSTEMS}])
[,RET=CHNG|HAVE|TEST|USE|NONE]
[,RNL=YES|NO]
[,RELATED=value]
Requests control of one or more serially reusable resources.
List and execute forms are also available.
Defines the scope of the request:
STEP=This job step only (default)
SYSTEM=This system only
SYSTEMS=Multiple systems
Type of resource request:
CHNG=Change from shared to exclusive
HAVE=Request now if not previously requested
TEST=Test if available
USE=Request if immediately available. Program continues if not available.
NONE=Request unconditionally (default). Program waits.
The first five parameters (qname-addr through STEP|SYSTEM|SYSTEMS) may be repeated to specify multiple requests, up to a limit of 255 characters.
The final three parameters (RET through RELATED) apply to all the requests specified.
Example 1:
ENQ (MAJOR1,MINOR1,E,,SYSTEM)
This example requests exclusive ownership of one resource. The length of the minor resource name defaults to the assembled length.
Example 2:
ENQ (MAJOR2,MINOR2,E,12,,MAJOR3,MINOR3,S,,)RET=USE,RNL=YES