## 10.6.13 IOSTAT Keyword

The IOSTAT keyword specifies I/O status. It takes the following form:

    IOSTAT = ios

ios
  Is an integer scalar memory reference.

This keyword causes ios to be defined as follows:

- Zero: If no error condition exists

- A positive integer: If an error condition exists

IOSTAT applies only to the OPEN statement in which it appears and not to subsequent I/O operations on the logical unit that is opened. However, you can use the IOSTAT keyword in subsequent I/O statements to perform a similar function.

For More Information:

- On using the IOSTAT parameter in a control list, see Section 7.1.1.9.

- On Fortran I/O status values, see your user manual.

Previous Page Next Page Table of Contents