Sequential WRITE statements transfer output data to external
sequential access records. The statements can be formatted by
using format specifiers (which can use list-directed formatting)
or namelist specifiers (for namelist formatting), or they can be
unformatted.
A sequential WRITE statement takes one of the following forms:
- Formatted:
- WRITE (eunit, format [, advance] [,
iostat] [, err]) [io-list]
- Formatted - List-Directed:
- WRITE (eunit, * [, iostat] [, err]) [io-list]
- Formatted - Namelist:
- WRITE (eunit, nml-group [, iostat] [, err])
- Unformatted:
- WRITE (eunit [, iostat] [, err]) [io-list]
- eunit
Is an external unit specifier ([UNIT=]io-unit).
- format
Is a format specifier ([FMT=]format).
- advance
Is an advance specifier (ADVANCE=c-expr). If the value
of c-expr is 'YES', the
statement uses advancing output; if the value is 'NO',
the statement uses nonadvancing output. The
default value is 'YES'.
- iostat
Is a status specifier (IOSTAT=i-var).
- err
Is a branch specifier (ERR=label) if an error condition occurs.
- io-list
Is an I/O list.
- *
Is the format specifier indicating list-directed formatting.
(It can also be specified as FMT=*.)
- nml-group
Is a namelist specifier ([NML=]group) indicating namelist
formatting.
For More Information:
Previous Page Next Page Table of Contents