Forms for Sequential READ Statements

Sequential READ statements transfer input data from external sequential-access records. The statements can be formatted with format specifiers (which can use list-directed formatting) or namelist specifiers (for namelist formatting), or they can be unformatted.

A sequential READ statement takes one of the following forms:

Formatted:

READ (eunit, format [, advance] [, size] [, iostat] [, err] [, end] [, eor]) [io-list]
READ form [, io-list]

Formatted - List-Directed:

READ (eunit, * [, iostat] [, err] [, end]) [io-list]
READ * [, io-list]

Formatted - Namelist:

READ (eunit, nml-group [, iostat] [, err] [, end])
READ nml

Unformatted:

READ (eunit [, iostat] [, err] [, end]) [io-list]

For more information, see READ in the A to Z Reference.

This section discusses the following topics:

For More Information: