Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)

Compilation
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
7-11
IF Command
IF Command
The IF command causes the compiler to ignore subsequent source text unless the
specified toggle is turned on with a SETTOG command.
toggle-number
is an integer from 1 through 15.
COPY statements are not affected by this command; these statements are still processed
and expanded.
The following example illustrates the IF command:
?RESETTOG 1, 2
.
.
.
?IF 2
.
.
.
text
.
.
.
?ENDIF 2
The source text bounded by the IF 2 and ENDIF 2 commands is ignored.
IFNOT Command
The IFNOT command causes the compiler to ignore subsequent source text unless the
specified toggle is turned off either with the RESETTOG command or by default (never
set).
toggle-number
is an integer from 1 through 15.
COPY statements are not affected by this command; these statements are still processed
and expanded.
The following example illustrates the IFNOT command:
?RESETTOG 1, 2
.
.
.
?IFNOT 1
IF toggle-number
IFNOT toggle-number