Using a prompt override program for a CL command

A prompt override program can be used to allow current values rather than defaults to be displayed when a command is prompted.

To use a prompt override program, follow these steps:

  1. Specify any parameters that are to be key parameters on the PARM statement in the command definition source.
  2. Write a prompt override program.
  3. Specify the name of the prompt override program on the PMTOVRPGM parameter when you create or change the command.