Overview (BREAK command)

BREAK controls looping that cannot be fully controlled with IF clauses. Generally, BREAK is used within a DO IF—END IF structure. The expression on the DO IF command specifies the condition in which BREAK is executed.

Basic Specification

  • The only specification is the keyword BREAK. There are no additional specifications.
  • BREAK must be specified within a loop structure. Otherwise, an error results.

Operations

  • A BREAK command inside a loop structure but not inside a DO IF—END IF structure terminates the first iteration of the loop for all cases, since no conditions for BREAK are specified.
  • A BREAK command within an inner loop terminates only iterations in that structure, not in any outer loop structures.