next up previous contents index
Next: Implied DO-loops Up: READ and WRITE Statements Previous: Record Number

Error and End-of-file Identifiers

These may be provided in any combination, but END=label is only valid when reading a sequential or internal file. See 10.5 for more information.
 
END=label 
ERR=label 
IOSTAT=integer-variable

The data list of a READ statement may contain variables, array-elements, character-substrings, or complete arrays of any data type. An array-name without subscripts represents all the elements of the array; this is not permitted for assumed-size dummy arguments in procedures (because the array size is indeterminate). The list may also contain implied DO-loops (explained below).

The data list of a WRITE statement may contain any of the items permitted in a READ statement and in addition expressions of any data type. As in all I/O statements, expressions must not themselves involve the execution of other I/O statements.



Helen Rowlands
8/27/1998