Previous Topic: Special PPQ CommandsNext Topic: DEBUG Command


COUNT Command

The COUNT command counts the number of items in a specified queue. The return information is a positive integer.

This command has the following format:

ADDRESS PPQ 'COUNT QUEUE(qname) [CMDRESP(destination)]
                                [PREFIX(newvarname)]'
QUEUE

Specifies the 1- to 16-character name of the queue (qname). The queue name can contain alphanumeric characters and any of these special characters: ! @ # $ _

The queue name cannot contain blanks.

CMDRESP

(Optional) Directs return information, if any, to a specific destination. For a list of valid destination values, see the section Change the Default Return Destination with CMDRESP.

Default: REXX

PREFIX

(Optional) Directs return information to a stem variable name (newvarname) other than the default. For more information, see ADDRESS PPQ Return Information.

Note: The PREFIX operand is only valid if REXX is the destination of the return information.

Note: The PREFIX operand is only valid if REXX is the destination of the return information.

Default: PPQ.COUNT