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

%GO TO Statement

The %GO TO statement causes the preprocessor to continue its scan at the specified label.

Read syntax diagramSkip visual syntax diagram>>-%--+------------+--GO--TO--label--;-------------------------><
      | .--------. |
      | V        | |
      '---label:-+-'
 

Abbreviation: %GOTO

The label following the GO TO specifies the point to which the scan is transferred. It must be a label of a preprocessor statement, although it cannot be the label of a preprocessor procedure.

A preprocessor GO TO statement appearing within a preprocessor procedure cannot transfer control to a point outside of that procedure. In other words, the label following GO TO must be contained within the procedure.

See "%INCLUDE Statement" below, for a restriction regarding the use of %GO TO with included strings.


Terms of use | Feedback

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