Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

%LEAVE Statement

When contained in or specifying a simple DO-group, the %LEAVE statement terminates the group. When contained in or specifying an iterative DO-group, the %LEAVE statement terminates all iterations of the group, including the current iteration. The flow of control goes to the same point it would normally go to if the do-group had terminated by reaching its END statement.

Read syntax diagramSkip visual syntax diagram>>-%--+------------+--LEAVE--+-------+--;----------------------><
      | .--------. |         '-label-'
      | V        | |
      '---label:-+-'
 
label-constant
Must be a label of a containing DO-group. The DO-group that is left is the DO-group that has the specified label. If label-constant is omitted, the DO-group that is left is the group that contains the LEAVE statement.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)