Developer Guide and Reference

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

INQUIRE: IOLENGTH Specifier

The IOLENGTH specifier is used with the inquire by output list form of the INQUIRE statement, which has an iolist. It takes the form:

IOLENGTH = iolen

iolen

Is an integer scalar variable.

An INQUIRE by output list statement assigns the number of storage units that would be required to store the data specified in the iolist in an unformatted file to iolen. iolen can be used as a RECL= specifier in a subsequent OPEN statement when opening a file for unformatted output. The value is expressed in 4-byte units (longwords) by default. The value can be expressed in bytes if compiler option assume byterecl is specified.

The iolist of the INQUIRE statement cannot contain any derived-type list items that require defined I/O procedures. If a derived-type variable appears in the iolist, the value assigned to iolen assumes that no defined I/O procedure is invoked.