IBM Books

Language Reference


Statements

A Fortran 90 statement is a sequence of lexical tokens. Statements are used to form program units.

The maximum length of a statement in XL Fortran is 6700 characters.

See Part 2 of this book for details on all statements supported by XL Fortran.

Statement Keywords

A statement keyword is part of the syntax of a statement, and appears in uppercase bold in the syntax diagrams in this book. For example, the term DATA in the DATA statement is a statement keyword.

No sequence of characters is reserved in all contexts. A statement keyword is interpreted as an entity name if the keyword is used in such a context.

Statement Labels

A statement label is a sequence of one to five digits, one of which must be nonzero, that you can use to identify statements in a Fortran scoping unit. In fixed source form, a statement label can appear anywhere in columns 1 through 5 of the initial line of the statement. In free source form, such column restrictions do not apply.

XL Fortran ignores all characters that appear in columns 1 through 5 on fixed source form continuation lines.

You must not give the same label to more than one statement in a scoping unit. White space and leading zeros are not significant in distinguishing between statement labels. You can label any statement, but you can only refer to executable statements and FORMAT statements by using statement labels. You must place the statement making the reference and the statement you want to reference in the same scoping unit. (See "Scope" for details).


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]