02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

[NML=]name<br />

ADVANCE=character-expression<br />

Table 10-54<br />

<strong>HP</strong> <strong>Fortran</strong> statements<br />

WRITE<br />

NOTE The NML= and FMT= specifier may not both appear in the same<br />

io-specifier-list.<br />

specifies the name of a namelist group for namelist-directed output. name<br />

must have been defined in a NAMELIST statement. If the optional keyword<br />

NML= is omitted, name must be the second item in the list. The first item<br />

must be the unit specifier without the optional keyword UNIT=.<br />

The NML= and FMT= specifier may not both appear in the same<br />

io-specifier-list.<br />

specifies whether to use advancing I/O for this statement.<br />

character-expression canbeoneofthefollowingarguments:<br />

'YES' Use advancing formatted<br />

sequential I/O default.<br />

'NO' Use nonadvancing formatted<br />

sequential I/O.<br />

ERR=stmt-label<br />

IOSTAT=integer-variable<br />

REC=integer-expression<br />

If the ADVANCE= specifier appears in io-specifier-list, unit must be<br />

connected to an external file opened for formatted sequential I/O.<br />

Nonadvancing I/O is incompatible with list-directed and namelist I/O.<br />

specifies the label of the executable statement to which control passes if an<br />

error occurs during statement execution.<br />

returns the I/O status after the statement executes. If the statement<br />

executes successfully, integer-variable is set to zero. If an error occurs, it<br />

is set to a positive integer that indicates which error occurred.<br />

specifies the number of the record to be written to the file connected for<br />

direct access. This specifier cannot appear in io-specifier-list with the<br />

NML= and ADVANCE= specifiers, nor with FMT=* (for list-directed I/O).<br />

Chapter 10 463

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!