BREAK directive
Suspends execution of the statements in the current channel or control structure and takes subsequent statements from the channel specified.
Option
Parameter
Description
The BREAK directive allows you to halt the execution of the current set of statements temporarily so that you can execute some other statements. If the parameter is not set, the break will always take place. Alternatively, you can specify a logical expression and then the break will take place only if this produces a true (i.e. non-zero) result.
The CHANNEL option determines where the statements to be executed during the break are to be found. Usually (and by default) they are in channel 1. The statements are read and executed, one at a time, until an ENDBREAK statement is reached, at which point control returns to the statements originally being executed.
BREAK also provides a convenient way of interrupting a loop or a procedure so that you can read one set of output before the next is produced.
Option: CHANNEL.
Parameter: unnamed.