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

Parameters

DSPF Display file

The display file of a TYPE(*DSPF) menu.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME

*SAME
The value does not change.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Display file Display file

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

MSGF Message file

The message file of a TYPE(*DSPF) menu (messages USRxxxx).

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME

*SAME
The value does not change.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Message file Message file

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

CMDLIN Command line

The command line of a TYPE(*DSPF) menu.

Type
*CHAR
Required
No
Default
*SAME
Length
6
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SAME
Length
5
Case
Uppercase

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.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME

*SAME
The value does not change.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Program Program

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

CURLIB Current library

The current library while the menu is shown.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

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.

Type
*NAME
Required
No
Default
*SAME
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Mixed case

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.

IBM command documentation

Generated from os/cl/catalog/CHGMNU.json and os/cl/help/CHGMNU.json.