gtpo1ma5Operations

ZMQSC CLEAR QL-Remove Messages from a TPF MQSeries Local Queue

Use this command to remove all messages from a local normal queue.

Requirements and Restrictions

Format




QL-qlname
specifies the name of the local queue to be cleared, where qlname is the 1- to 48-character queue name. A queue name can contain percent signs (%), slashes (/), underscores (_), periods (.), letters in either uppercase (A-Z) or lowercase (a-z), and digits (0-9). If the name is enclosed in single quotation marks, the characters can be mixed case.

FORCE
clears a queue even if there were errors when removing messages from the queue.

Additional Information

Online help information is available for this command. To display the help information, enter one of the following:

ZMQSC HELP

ZMQSC ?

Examples

The following example clears the LOCALQ queue:

+--------------------------------------------------------------------------------+
|User:   ZMQSC CLEAR QL-LOCALQ                                                   |
|                                                                                |
|System: MQSC0219I 08.45.03 ALL MESSAGES REMOVED FROM LOCAL QUEUE LOCALQ         |
|                                                                                |
+--------------------------------------------------------------------------------+

Related Information

See MQSeries Command Reference for more information about the MQSeries product.