Previous Topic: QUEUE Statement UsageNext Topic: RESOURCE TABLE Statement—Defines a Resource Table


Example: QUEUE Statement

Adding a Queue with the Default Version Number

The following statement adds queue ABCQ, which is version 1 by default:

ADD QUEUE ABCQ
    INVOKES TASK QTSK1.

Adding a Queue with a Specified Version Number

The following statement adds queue ABCQ version 2:

ADD QUEUE ABCQ VERSION IS 2
    DISABLED
    INVOKES TASK QTSK2
    THRESHOLD IS 5
    UPPER LIMIT IS 2000.

Modifying a Queue

The following statement modifies queue ABCQ version 2 by changing the upper limit value to 1,000:

MODIFY QUEUE ABCQ VERSION 2
   UPPER LIMIT IS 1000.

Deleting a Queue

The following statement deletes version 1 of queue ABCQ:

DELETE QUEUE ABCQ VERSION 1.