## 9.6.15 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.

Secondary operating system messages do not display when IOSTAT is specified. To display these messages, remove IOSTAT or use a platform-specific method such as an OpenVMS condition handler.

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.

- On OpenVMS condition handlers, see your user manual.

Previous Page Next Page Table of Contents