CL Command Reference - CHGMNU

CL Command List > CHGMNU Reference

Description:

The Change Menu (CHGMNU) command can be used to change the following:
. Current library and product library of a menu
. Display file name and library of a display file menu
. Message file name and library of a display file menu
. Whether a long command line, a short command line, or no command line (an option line) is displayed for a display file menu
. Whether a description of the active function keys is shown for a display file menu
. Program name and library of a program menu
. Text description of a menu

Restrictions:

. You must have opbject operational (*OBJOPR) and object management (*OBJMGT) authorities for the menu object, and use (*USE) authority for the library where the menu object is located.


Examples:

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.