You can use a prompt override program by specifying the program name when creating or changing the command.
To use a prompt override program for a command 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 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 when no key parameters are defined in the command definition source. In these cases, the prompt override program is called before the command is prompted; informational message CPD029A is sent when the command is created or changed.