Visible to Intel only — GUID: GUID-2F7082A1-E1CA-4633-8815-11E2CA44AD0C
Visible to Intel only — GUID: GUID-2F7082A1-E1CA-4633-8815-11E2CA44AD0C
I/O Status Specifier (IOSTAT=)
The I/O status specifier designates a variable to store a value indicating the status of a data transfer operation. It takes the following form:
IOSTAT=i-var
i-var |
Is a scalar integer variable. When a data transfer statement is executed, i-var is set to one of the following values:
|
Execution continues with the statement following the data transfer statement, or the statement identified by a branch specifier (if any).
An end-of-file condition occurs only during execution of a sequential READ statement; an end-of-record condition occurs only during execution of a nonadvancing READ statement.
The intrinsic functions IS_IOSTAT_END and IS_IOSTAT_EOR can be used to test the IOSTAT variable to determine if an end-of-file or end-of-record has occurred. Alternately, the intrinsic module ISO_FORTRAN_ENV contains the named constants IOSTAT_END and IOSTAT_EOR that are defined with the negative integer values indicating end-of-file and end-of-record conditions returned through the IOSTAT variable.