Previous Topic: DELETE TABLE (DC/UCF)Next Topic: DISCONNECT


DEQUEUE (DC/UCF)

The DEQUEUE statement releases resources acquired by the issuing task with an ENQUEUE request. Acquired resources not released explicitly with a DEQUEUE request are released automatically at task termination.

Syntax
►►─── DEQUEUE ─┬─── ALL ──────────────────────────────────────────────┬─ ; ───►◄
               │ ┌──────────────────────────────────────────────────┐ │
               └─▼─ NAME (resource-id) LENGTH (resource-id-length) ─┴─┘
Parameters
ALL

Releases all resources acquired by the issuing task by means of ENQUEUE requests.

NAME (resource-id)

Specifies the resources to be dequeued and supplies the length of each resource: Resource-id is the symbolic name of a user-defined field that contains the 1- to 255-character resource ID. Multiple NAME parameters must be separated by at least one blank.

LENGTH (resource-id-length)

Specifies either the symbolic name of a user-defined FIXED BINARY(31) field that contains the length of the resource ID, or the length itself expressed as a numeric constant.

Example

The following statement releases all the resources enqueued by the issuing task:

DEQUEUE NAME (PAYROLL_LOCK)
    LENGTH (16);
Status Codes

Upon completion of the DEQUEUE function, the ERROR_STATUS field in the IDMS DC communications block indicates the outcome of the operation:

0000

The request has been serviced successfully.

3913

At least one resource ID cannot be found; all resources that were located have been dequeued.

3931

The parameter list is invalid.