| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Delete Message File (DLTMSGF) command deletes the specified message files from the system, including all the message descriptions stored in the file. If any messages that use this file exist on queues, no message text will be available for those messages.
Restrictions: To delete the specified message file, you must have object existence (*OBJEXIST) authority for the file. The IBM-supplied message files, QCPFMSG (for IBM i messages) and the licensed program message files (such as QRPGMSG), cannot be deleted (unless authorized by the security officer).
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| MSGF | Message file | Qualified object name | Required, Positional 1 |
| Qualifier 1: Message file | Generic name, name | ||
| Qualifier 2: Library | Name, *LIBL, *CURLIB, *USRLIBL, *ALL, *ALLUSR |
| Top |
Specifies one or more message files to be deleted.
This is a required parameter.
Qualifier 1: Message file
If the complete object name is specified, and multiple libraries are searched, multiple objects can be deleted only if *ALL or *ALLUSR is specified for the library.
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 |
DLTMSGF MSGF(INV)
This command deletes the message file named INV. All message descriptions stored in INV are also removed.
| Top |
*ESCAPE Messages
| Top |