FORTRAN Reference Manual
Introduction to File I/O in the HP NonStop 
Environment
FORTRAN Reference Manual—528615-001
5-26
I/O Lists
I/O Lists
The I/O list of an I/O statement specifies the items to transfer and the order of 
transmission. Separate list items with commas. FORTRAN transmits the items 
sequentially from left to right.
A list item can be a variable name, an array or array element name, a character 
substring name, a RECORD, a RECORD field name, or an implied DO list. In a PRINT 
or WRITE statement, a list item can also be an expression. An array name in an I/O list 
specifies the entire array in the order in which it is stored.
Considerations
•
A standard-conforming program should not use an expression in an I/O list to 
reference a function if such a reference would cause any I/O operations to be 
executed or if the reference would cause the value of any element in the I/O list to 
change.
•
You cannot use assumed-size arrays without subscripts in an I/O list.
END = label Specifies the label of an executable statement to which FORTRAN 
transfers control if an end of file is encountered during an input operation. 
You can use this specifier only with the READ statement.
ERR = label Specifies the label of an executable statement to which FORTRAN 
transfers control if an error condition is encountered during I/O 
processing.
IOSTAT = ios Specifies an integer variable or array element. After the execution of an 
I/O statement, ios returns zero if no error occurred, a file system error, 
an error defined by the FORTRAN run-time library, or -1 if an end of file 
was encountered. If ios is less than 10000, ios is a file system-defined 
error number. If ios is greater than 10000, ios is a FORTRAN run-time 
library-defined error number and the actual error number is ios - 10000.
If an I/O statement does not specify an ERR or an IOSTAT option and an 
I/O error occurs, FORTRAN terminates the program and displays a 
diagnostic message.
Table 5-7. I/0 Control Specifiers (page 2 of 2)
Control 
Specifier Meaning










