Queue Manager Manual

DEQ (UOW Code 501)
Queue Manager Server Interface
46517 Tandem Computers Incorporated 2–13
DEQ Operation DEQ retrieves, thereby removing, an entry from the named queue and returns either
an entry from the queue or an error. The error could be a warning that there was
nothing on the queue. If the queue does not contain an expected entry, the application
can follow the DEQ operation with a WAITQ request. The WAITQ request operates as
a delay until the queue has an entry.
Note If just one DEQ is issued in a transaction, and an error 6001 is returned, the 6001 error is only a warning
that the queue is empty. In this case, you should not abort the TMF transaction, because an abort
transaction can cause excessive system overhead during Queue Manager operations. Instead, issue an
END TRANSACTION.
The response always contains MAX-DATA-SIZE bytes of data immediately following
the DATA-LEN field. If the actual length of the data for the queue entry is less than
MAX-DATA-SIZE, or if an error occurs during processing, PAD-CHAR is used to pad
the field.
The entry returned is the oldest entry among those with the highest priority or is the
one specified if SPECIFIC-DEQ is set to Y.