### 7.1.1.9 I/O Status Specifier

The I/O status specifier designates a variable to store a value indicating the status of I/O operations. It takes the following form:

    IOSTAT = ios

ios
  Is an integer scalar memory reference.

Execution of an I/O statement containing this specifier defines the variable (ios) as one of the following:

- A zero value, if neither an error condition nor end-of- file condition occurred.

- A positive value, if an error condition occurred.

- A negative value, if an end-of-file condition occurred.

If an error or end-of-file condition occurs, ios is set and execution continues with the statement after the I/O termination.

For More Information:

For details on the error numbers returned by IOSTAT, see your user manual.

Previous Page Next Page Table of Contents