$END Statement

The $END Statement is used in conjunction with the IF Statement to control conditional compilation. There is a single format:



The whole statement must appear on a single line.

General Rules

The innermost $IF statement is terminated. The now active $IF condition is considered:

  • If the active condition is true, the source lines following the $END are processed
  • If the condition is false, COBOL source lines are ignored until the next conditional compilation line is encountered