Information returned from the prompt override program

Based on the values passed, the prompt override program retrieves the current values for the parameters that are not key parameters.

These values are placed into a command string, where the length of the string is determined and returned.

Use the following guidelines to ensure your command string is correctly defined:

Some commands can only be run in certain modes (such as DEBUG) or job status (such as *BATCH) but can still be prompted for from other modes or job statuses. When the command is prompted, the prompt override program is called regardless of the user's environment. If the prompt override program is called in a mode or environment that is not valid for the command, the defaults are displayed for the command and a value of 0 is returned for the length. Using the debug commands Change Debug (CHGDBG) and Add Program (ADDPGM) when not in debug mode are examples of this condition.

Related concepts
Example: Use a prompt override program
Related tasks
Use selective prompting for CL commands
Related information
Change Debug (CHGDBG) command
Add Program (ADDPGM) command