Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Menu (CHGMNU) command can be used to change the following:
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
MENU | Menu | Qualified object name | Required, Key, Positional 1 |
Qualifier 1: Menu | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
DSPF | Display file | Single values: *SAME Other values: Qualified object name |
Optional |
Qualifier 1: Display file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MSGF | Message file | Single values: *SAME Other values: Qualified object name |
Optional |
Qualifier 1: Message file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CMDLIN | Command line | *SAME, *LONG, *SHORT, *NONE | Optional |
DSPKEY | Display function keys | *SAME, *NO, *YES | Optional |
PGM | Program | Single values: *SAME Other values: Qualified object name |
Optional |
Qualifier 1: Program | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CURLIB | Current library | Name, *SAME, *NOCHG, *MNULIB, *CRTDFT | Optional |
PRDLIB | Product library | Name, *SAME, *NOCHG, *NONE | Optional |
TEXT | Text 'description' | Character value, *SAME, *BLANK | Optional |
Top |
Specifies the menu to be changed.
This is a required parameter.
Qualifier 1: Menu
Qualifier 2: Library
Top |
Specifies the display file used for the menu. The display file must include one record format with the same name as the display file itself, called the menu format. Help formats can also be included in the file.
Help formats follow the naming convention #Hxxyy, where xx is the first menu option and yy is the last menu option to which the help format applies. (For example, #H0306 would apply to menu options 3 through 6.) #H0000 designates the general help for the menu.
This parameter can be specified only if the menu was created with *DSPF specified for the Menu type (TYPE) parameter on the Create Menu (CRTMNU) command.
Single values
Qualifier 1: Display file
Qualifier 2: Library
Top |
Specifies the message file that contains the commands to run when a menu option is selected. The MSGID's of the messages in this file are of the form USRxxxx, where xxxx is the number of the menu option that is typed on the command line.
This parameter can be specified only if the menu was created with *DSPF specified for the Menu type (TYPE) parameter on the Create Menu (CRTMNU) command.
Single values
Qualifier 1: Message file
Qualifier 2: Library
Top |
Specifies whether a long command line, a short command line, or no command line (an option line) is used.
This parameter can be specified only if the menu was created with *DSPF specified for the Menu type (TYPE) parameter on the Create Menu (CRTMNU) command.
Top |
Specifies whether the function key legend appears at the bottom of the menu when the menu is shown.
This parameter can be specified only if the menu was created with *DSPF specified for the Menu type (TYPE) parameter on the Create Menu (CRTMNU) command.
Top |
Specifies the program to call when the menu is shown.
This parameter can be specified only if the menu was created with *PGM specified for the Menu type (TYPE) parameter on the Create Menu (CRTMNU) command.
Single values
Qualifier 1: Program
Qualifier 2: Library
Top |
Specifies the library to be used as the current library when the menu is run.
Top |
Specifies the library to be used as the product library while the menu is shown.
Note: The product library for a command or menu remains in the library list while a command or menu is active, unless another command or menu changes the product library. When a command or menu that changed the product library ends, the product library is restored to what it was when the command or library started.
Top |
Specifies the text that briefly describes the object.
Top |
CHGMNU MENU(ARLIB/ARPERS) PGM(ARLIB/PERSLIST)
This command changes the program that is called when a menu named ARPERS, located in library ARLIB, is run. The menu now calls a program called PERSLIST, also located in library ARLIB.
Note that the menu (ARPERS) must have been created with TYPE(*PGM) specified on the Create Menu (CRTMNU) command for the PGM parameter to be specified here.
Top |
*ESCAPE Messages
Top |