DEQ (Dequeue Resource) Macro

A task releases a resource by issuing the DEQ macro.

If other tasks are enqueued on the same RCB, the DEQ macro frees from their wait state all other tasks that were waiting for that resource. A task that attempts to dequeue a resource that was not enqueued or that was enqueued by another task is abnormally terminated. Dequeuing under these two conditions within an abnormal termination routine results in a null operation instruction.

The DEQ macro supports the 31 bit environment. DEQ can be issued in 24-bit or 31-bit addressing mode, above or below the 16 MB line.

When DEQ is issued in AMODE 24, the RCB address is treated as a 24-bit address. When DEQ is issued in AMODE 31, the RCB address is treated as a 31-bit address.

Format

Read syntax diagramSkip visual syntax diagramnameDEQrcbname(0)

Requirements for the caller

AMODE:
24 or 31
RMODE:
24 or ANY
ASC Mode:
Primary

Parameters

rcbname | (0)
The operand is the same as that in the ENQ macro and specifies the address of the RCB.