DEQ command and call

The DEQ (dequeue) request releases segments that were retrieved using the LOCKCLASS keyword or the Q command code.

The LOCKED keyword cannot take an argument, and cannot be used with DEQ. (Segments locked using the LOCKED keyword are released when a SYNCPOINT is taken.) Instead, you use LOCKCLASS with DEQ, which can take a 1-character argument in the range B to J inclusive. (These keywords correspond to the Q command code, which you can associate with a 1-character field in the range A to J.) You cannot use LOCKED and LOCKCLASS for the same segment. Using LOCKCLASS or Q on retrieval requests enables you to reserve segments for exclusive use by your transaction. No other transaction is allowed to update these reserved segments until your transaction reaches a syncpoint, or the DEQ request has been issued, when the reserved segments are released. This means that your application can leave these segments and retrieve them later without them being changed in the meantime.

The format of the DEQ command is:

EXEC DLI DEQ LOCKCLASS(data_value)

where data_value is a 1-byte alphabetic character in the range B to J.

The format of the DEQ call is:

CALL 'CBLTDLI' USING function,i/o pcb,i/o_area

where function is the address of a 4-byte area that contains the value of the DEQb function, i/o pcb is the name of the I/O PCB (mandatory), and i/o_area is a 1-byte alphabetic character in the range A to J.



dfht4c0056.html | Timestamp icon Last updated: Monday, 5 June 2017