1.5.3 Statement Label Field

Any statement can have a label. A statement label (or statement number) consists of from one to five decimal digits in the statement label field of a statement's initial line. Spaces and leading zeros are ignored. An all-zero statement label is invalid.

Labeled FORMAT and labeled executable statements are the only statements that can be referred to by other statements. FORMAT statements are referred to only in the format specifier of an I/O statement or in an ASSIGN statement. Two statements within a program unit cannot have the same label.

The first column of the label field can contain two special indicators: the comment indicator and the debugging statement indicator.

The statement label field of a continuation line must be blank (except in the case of a debugging statement).

For More Information:

For details on using a statement to refer to another statement, see Section 1.3.2.


Previous Page Next Page Table of Contents