CL Command Reference - PMTCTL

CL Command List > PMTCTL Reference

Description:

The Prompt Control (PMTCTL) statement specifies a condition that is tested to determine whether prompting is done for the parameters whose PARM statement referred to this PMTCTL statement. The PMTCTL statement must have a statement label that matches the label referred to in the Prompt control (PMTCTL) parameter of one or more PARM statements in the command definition source.



Examples:

Example 1: Selective Prompting with One Control Parameter

A: PMTCTL CTL(TYPE) COND((*EQ *) (*EQ *LIST)) +
NBRTRUE(*EQ 1)

If either TYPE(*) or TYPE(*LIST) is specified, the parameters which reference this PMTCTL statement are selected for prompting.



Example 2: Selective Prompting with Multiple Control Parameters Using Multiple PMTCTL Statements

B: PMTCTL CTL(P1) COND((*EQ *ALL))
PMTCTL CTL(P1) COND((*EQ *SOME)) LGLREL(*OR)
PMTCTL CTL(P2) COND((*EQ *ALL)) LGLREL(*AND)
PMTCTL CTL(P1) COND((*EQ *NONE)) LGLREL(*OR)
PMTCTL CTL(P2) COND((*NE *ALL)) LGLREL(*AND)

The parameters which refers to this group of PMTCTL statements are selected for prompting if any of the following conditions exist:
. *ALL is specified for P1.
. *SOME is specified for P1 and *ALL is specified for P2.
. *NONE is specified for P1 and *ALL is not specified for P2.