Specifying a prompt override program when creating or changing a CL command

To use a prompt override program for a command that you want to create, specify the program name when you use the Create Command (CRTCMD) command. You can also specify the program name when you change the command using the Change Command (CHGCMD) command.

For both the CRTCMD and CHGCMD commands, specify the name of the prompt override program on the PMTOVRPGM parameter.

If key parameters are defined in the command definition source but the prompt override program is not specified when the command is created or changed, warning message CPD029B results. The key parameters are ignored, and when the command is prompted, it is displayed using the defaults specified in the command definition source.

Sometimes a prompt override program is specified when a command is created but no key parameters are defined in the command definition source. In this case, the prompt override program is called before the command is prompted; informational message CPD029A is sent when the command is created or changed.