| Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
The Delete Message Queue (DLTMSGQ) command deletes the specified message queues and any messages in those message queues. Any message in the queue that requires a reply is answered with the default reply supplied by that message. If the message queue is being used by another job, the message queue cannot be deleted.
Restrictions:
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| MSGQ | Message queue | Qualified object name | Required, Positional 1 |
| Qualifier 1: Message queue | Generic name, name | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB, *USRLIBL, *ALL, *ALLUSR |
| Top |
Specifies one or more message queues to be deleted.
This is a required parameter.
Qualifier 1: Message queue
Qualifier 2: Library
#CGULIB #DSULIB #SEULIB #COBLIB #RPGLIB #DFULIB #SDALIB
Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:
QDSNX QRCLxxxxx QUSRDIRDB QUSRVI QGPL QSRVAGT QUSRIJS QUSRVxRxMx QGPL38 QSYS2 QUSRINFSKR QMGTC QSYS2xxxxx QUSRNOTES QMGTC2 QS36F QUSROND QMPGDATA QUSER38 QUSRPOSGS QMQMDATA QUSRADSM QUSRPOSSA QMQMPROC QUSRBRM QUSRPYMSVR QPFRDATA QUSRDIRCF QUSRRDARS QRCL QUSRDIRCL QUSRSYS
| Top |
DLTMSGQ MSGQ(JONES)
This command deletes the message queue named JONES. Messages stored in the JONES queue are also removed. The library list is used to find the message queue.
| Top |
*ESCAPE Messages
| Top |