COBOL Manual for TNS/E Programs (H06.03+)

Program Compilation
HP COBOL Manual for TNS/E Programs520347-003
11-51
ENDIF
ENDIF
ENDIF terminates the effect of a preceding IF or IFNOT directive.
toggle-number
is the toggle-number specified in a preceding IF or IFNOT directive.
ENDUNIT
ENDUNIT signals the end of a program unit. Each independent HP COBOL program
must end with either an ENDUNIT directive or an END PROGRAM statement;
otherwise, programs appear to be nested but lacking their required END PROGRAM
statement.
Default: None
Placement: Must be either on a directive line of its own or be the last of a sequence
of directives.
Dependencies: Requires a preceding IF or IFNOT directive with the same toggle-
number
References: IF and IFNOT
Default: The compiler detects the end of a Procedure Division by encountering
either an END PROGRAM statement or the end of the file.
Placement: Must be either on a directive line of its own or be the last of a sequence
of directives.
Scope: Applies to program unit
Dependencies: None
toggle-numberENDIF
VST278.vsd
ENDUNIT
VST279.vsd