Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

INQUIRE: IOSTAT Specifier

The IOSTAT specifier indicates if the INQUIRE statement was successful. It takes the following form:

IOSTAT = ios

ios

Is a scalar integer variable.

If no error occurs during the execution of the INQUIRE statement, ios becomes defined with the value zero. If the unit specified in the INQUIRE statement is an internal file, ios becomes defined with the processor-dependent positive value of the constant IOSTAT_INQUIRE_INTERNAL_UNIT, which is defined in the intrinsic module ISO_FORTRAN_ENV.

If any other error occurs, ios is assigned a processor-dependent positive value.