Command reference / sys
CHGMNU
Change Menu
Changes a menu: its current and product libraries and text, the display file, message file, command line and function key description of a display file menu, or the program of a program menu.
Allowed environments: *ALL.
Positional parameters: 1.
Restrictions
- Requires *OBJOPR and *OBJMGT authority to the menu and *USE authority to its library.
Parameters
MENU
Menu
The menu to change. This parameter is required.
*LIBL- Searches every library in the thread's library list until the first match is found.
*CURLIB- The job's current library. If no current library is in the library list, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Menu
Menu
Library
Library
Suggested / special values:
*LIBL, *CURLIB
DSPF
Display file
The display file of a TYPE(*DSPF) menu.
Suggested / special values:
*SAME
*SAME- The value does not change.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Display file
Display file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
MSGF
Message file
The message file of a TYPE(*DSPF) menu (messages USRxxxx).
Suggested / special values:
*SAME
*SAME- The value does not change.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Message file
Message file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
CMDLIN
Command line
The command line of a TYPE(*DSPF) menu.
Allowed values:
*SAME, *LONG, *SHORT, *NONE
*SAME- The value does not change.
*LONG- A 153-byte command line.
*SHORT- A 73-byte command line.
*NONE- A 4-byte option line.
DSPKEY
Display function keys
Whether a TYPE(*DSPF) menu describes its function keys.
Allowed values:
*SAME, *NO, *YES
*SAME- The value does not change.
*NO- Not described.
*YES- Described.
PGM
Program
The program of a TYPE(*PGM) menu.
Suggested / special values:
*SAME
*SAME- The value does not change.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Program
Program
Library
Library
Suggested / special values:
*LIBL, *CURLIB
CURLIB
Current library
The current library while the menu is shown.
Suggested / special values:
*SAME, *NOCHG, *MNULIB, *CRTDFT
*SAME- The value does not change.
*NOCHG- The current library does not change while the menu is shown.
*MNULIB- The library that contains the menu is the current library while the menu is shown.
*CRTDFT- There is no current library while the menu is shown; the previous current library, if any, is restored when the menu is left.
PRDLIB
Product library
The product library while the menu is shown.
Suggested / special values:
*SAME, *NOCHG, *NONE
*SAME- The value does not change.
*NOCHG- The product library is not changed when the menu is shown, and not restored when it is left.
*NONE- The product library entry of the library list is not used while the menu is shown.
TEXT
Text 'description'
The text that describes the menu.
Suggested / special values:
*SAME, *BLANK
*SAME- The value does not change.
*BLANK- No text.
Examples
CHGMNU MENU(ARLIB/ARPERS) PGM(ARLIB/PERSLIST)
Program menu ARPERS in ARLIB now calls program PERSLIST in ARLIB.
Generated from os/cl/catalog/CHGMNU.json and os/cl/help/CHGMNU.json.