Command reference / msg

WRKMSGQ

Work with Message Queues

Shows a list of message queues and lets you display, change, delete, and clear the specified message queues.

Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC. Positional parameters: 1.

Restrictions

Parameters

MSGQ Message queue

Specifies which message queues are shown on the Work with Message Queues display. This is a required parameter. The qualifiers are the queue name (specific or generic) and the library.

Type
*QUAL
Required
Yes
Case
Uppercase
*ALL
As the queue name, all message queues are shown. As the library, all libraries in the system, including QSYS, are searched.
*LIBL
All libraries in the thread's library list are searched.
*CURLIB
The thread's current library is searched; if none is set, QGPL is searched.
*USRLIBL
The current library and the user portion of the library list are searched; if no current library entry exists, only the user portion is searched.
*ALLUSR
All user libraries are searched, excluding Q-named libraries except the ones IBM lists as user-data libraries, and certain product libraries.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Message queue Message queue

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

Suggested / special values: *ALL

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB, *USRLIBL, *ALLUSR, *ALL

Examples

WRKMSGQ MSGQ(PERSLIB/MQ*)

Displays the Work with Message Queues panel listing all message queues whose names begin with MQ in library PERSLIB.

IBM command documentation

Generated from os/cl/catalog/WRKMSGQ.json and os/cl/help/WRKMSGQ.json.