Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Delete Menu (DLTMNU) command deletes the specified menu from the system.
Note: This command also allows you to delete the display files and message files associated with a Display File (*DSPF) menu, or to delete the program associated with a Program (*PGM) menu.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
MENU | Menu | Qualified object name | Required, Positional 1 |
Qualifier 1: Menu | Generic name, name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB, *USRLIBL, *ALL, *ALLUSR | ||
DLTREFOBJ | Delete referenced objects | Single values: *NONE, *ALL Other values (up to 3 repetitions): *DSPF, *MSGF, *PGM |
Optional |
Top |
Specifies the menu or menus to be deleted.
This is a required parameter.
Qualifier 1: Menu
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 QUSRIJS QUSRVxRxMx QGPL QSRVAGT QUSRINFSKR QGPL38 QSYS2 QUSRNOTES QMGTC QSYS2xxxxx QUSROND QMGTC2 QS36F QUSRPOSGS QMPGDATA QUSER38 QUSRPOSSA QMQMDATA QUSRADSM QUSRPYMSVR QMQMPROC QUSRBRM QUSRRDARS QPFRDATA QUSRDIRCL QUSRSYS QRCL QUSRDIRDB QUSRVI
Top |
Specifies that the display file, message file, or program objects referred to by the menu are to be deleted. Only TYPE(*DSPF) menus can refer to a display file or a message file and only TYPE(*PGM) menus can refer to a program.
Note: The current and product libraries that are specified for the menu are not used to find and delete objects.
Single values
Other values (up to 3 repetitions)
Top |
Example 1: Deleting the Menu Only
DLTMNU MENU(FINLIB/ARMENU)
This command deletes the menu named ARMENU from the library named FINLIB.
Example 2: Deleting the Display and Message File
DLTMNU MENU(EXLIB/TEST) DLTREFOBJ(*DSPF *MSGF)
This command deletes the menu named TEST from the library named EXLIB. It also deletes the display file and message file associated with the menu named TEST.
Top |
*ESCAPE Messages
Top |