Prompting for user input at run time

With most CL programs and procedures, the workstation user provides input by specifying command parameter values that are passed to the program or by typing into input-capable fields on a display prompt.

You can prompt the workstation user for input to a CL procedure or program in the following ways:

  • If you enter a ? before the CL command in the CL source program, the system displays a prompt for the CL command. Parameter values you have already specified in your source program are filled in and cannot be changed by the workstation user.
  • If you call the QCMDEXC program and request selective prompting, the system displays a prompt for a CL command, but you need not specify in the CL source program which CL command is to be used at processing time.