The QCMDEXC program may be used to call the prompter.
This use of QCMDEXC with prompting in CL procedures and programs allows you to alter all values on the command except the command name itself. This is more flexible than direct use of the prompter, where you can only enter values not specified in the source (see previous section). If the prompter is called directly with a command such as:
?OVRDBF FILE(FILEX)
you can specify a value for any parameter except FILE. However, if the command is called during processing of a program using the QCMDEXC program, such as in the following example, you can specify a value for any parameter, including FILE. In this example, FILEX is the default.:
CALL QCMDEXC PARM('?OVRDBF FILE(FILEX)' 19)
Prompting with modifiable specified values may also be accomplished using selective prompting as described earlier in this chapter. However, each keyword must be explicitly selected. The prompter is called directly with a command such as:
OVRDBF ??FILE(FILEX) ??TOFILE(*N) ??MBR(*N)