HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
WRITE
Chapter 10 497
NOTE The NML= and FMT= specifier may not both appear in the same
io-specifier-list
.
[NML=]
name
specifies the name of a namelist group for namelist-directed output.
name
must have been defined in a NAMELIST statement. If the optional keyword
NML= is omitted,
name
must be the second item in the list. The first item
must be the unit specifier without the optional keyword UNIT=.
The NML= and FMT= specifier may not both appear in the same
io-specifier-list
.
ADVANCE=
character-expression
specifies whether to use advancing I/O for this statement.
character-expression
can be one of the following arguments:
If the ADVANCE= specifier appears in
io-specifier-list
,
unit
must be
connected to an external file opened for formatted sequential I/O.
Nonadvancing I/O is incompatible with list-directed and namelist I/O.
ERR=
stmt-label
specifies the label of the executable statement to which control passes if an
error occurs during statement execution.
IOSTAT=
integer-variable
returns the I/O status after the statement executes. If the statement
executes successfully,
integer-variable
is set to zero. If an error occurs, it
is set to a positive integer that indicates which error occurred.
REC=
integer-expression
specifies the number of the record to be written to the file connected for
direct access. This specifier cannot appear in
io-specifier-list
with the
NML= and ADVANCE= specifiers, nor with FMT=* (for list-directed I/O).
Table 10-54
'YES' Use advancing formatted
sequential I/O default.
'NO' Use nonadvancing formatted
sequential I/O.