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. -
BREAKmust be specified within a loop structure. Otherwise, an error results.
Operations
- A
BREAKcommand inside a loop structure but not inside aDO IF—END IFstructure terminates the first iteration of the loop for all cases, since no conditions forBREAKare specified. - A
BREAKcommand within an inner loop terminates only iterations in that structure, not in any outer loop structures.