Queue Manager Manual

WAITQ (UOW Code 505)
Queue Manager Server Interface
46517 Tandem Computers Incorporated 2–21
WAITQ (UOW Code
505)
WAITQ instructs Wait Manager to wait for an entry on a queue. When a queue entry
is made, Wait Manager notifies the server process. This operation does not require a
TMF transaction. Following is the DDL definition:
DEF waitq-uow.
02 hdr.
03 self-ident PIC AA VALUE “UW”.
03 uow-code PIC 9(4) COMP VALUE 505.
02 flags.
03 any-queue-name TYPE BOOLEAN VALUE “N”.
03 reserved-1 TYPE BOOLEAN VALUE “N”.
03 reserved-2 TYPE BOOLEAN VALUE “N”.
03 reserved-3 TYPE BOOLEAN VALUE “N”.
03 reserved-4 TYPE BOOLEAN VALUE “N”.
03 reserved-5 TYPE BOOLEAN VALUE “N”.
03 reserved-6 TYPE BOOLEAN VALUE “N”.
03 reserved-7 TYPE BOOLEAN VALUE “N”.
02 queue-name PIC X(32) VALUE SPACES.
02 wait-priority PIC 9(3) COMP VALUE 0.
02 wait-timeout PIC S9(4) COMP VALUE -1.
END.
DEF waitq-rsp.
02 hdr.
03 self-ident PIC AA VALUE “UW”.
03 uow-code PIC 9(4) COMP VALUE 505.
02 retn-code PIC S9(4) COMP.
02 retn-code-detail PIC S9(4) COMP.
02 queue-name PIC X(32) VALUE SPACES.
END.
WAITQ Fields The following fields are defined in this UOW:
HDR
This is the UOW header. The UOW-CODE value is 505.
FLAGS
This lets you qualify the wait operation. Fields within FLAGS are as follows:
ANY-QUEUE-NAME specifies whether the wait is restricted to a specific queue.
Y Wait for an entry on any queue.
N Wait for an entry on the queue entered in the QUEUE-NAME field of the
request.
RESERVED-1 through RESERVED-7 are reserved for future use; these fields must
be set to N.