ENQ

Top  Previous  Next

Schedule use of a resource by a task (enqueue). If a task enqueues on a resource but does not dequeue from it, CICS automatically releases the resource during syncpoint processing, or when the task is terminated.

ENQ     RESOURCE(area)
[ LENGTH(len) ]
[ NOSUSPEND ]
[ TASK ] 

Options

LENGTH(len)

specifies as a halfword binary value the length of the resource to be enqueued on.

NOSUSPEND

specifies that the application program is not to be suspended if the resource on the ENQ command is unavailable, but the ENQBUSY condition occurs.

RESOURCE(area)

specifies either an area whose address represents the resource to be enqueued from, or a variable that contains the resource (an employee name, for example). In the latter case, you must use the LENGTH option.

TASK

The duration of the ENQ is a task