7.2.1 Sequential READ Statements

Sequential READ statements transfer input data to internal storage from external records that were sequentially accessed. They can be formatted, list-directed, namelist, or unformatted, taking one of the following forms:

Formatted

READ (extu,fmt [,iostat] [,err] [,end]) [iolist]
READ f [,iolist]

List-Directed

READ (extu, *[,iostat] [,err] [,end]) [iolist]
READ *[,iolist]

Namelist

READ (extu,nml [,iostat] [,err] [,end])
READ n 

Unformatted

READ (extu [,iostat] [,err] [,end]) [iolist]
extu
Is an external unit specifier.
fmt
Is a format specifier.
iostat
Is an I/O status specifier.
err, end
Are transfer-of-control specifiers.
iolist
Is the I/O-list specifier.
f
Is the nonkeyword form of a format specifier.
*
Is a list-directed format specifier. This parameter can also be specified as FMT=*.
nml
Is a namelist specifier.
n
Is the nonkeyword form of a namelist specifier.

The control-list parameters are extu, fmt, iostat, err, end, f, * (or FMT=*), nml, and n. The I/O list parameter is iolist.

For More Information:


Previous Page Next Page Table of Contents