Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

INQUIRE: POS Specifier

The POS specifier identifies the file position in file storage units in a stream file. It takes the following form:

POS = p

p

Is a scalar integer variable that is assigned the number of the file storage unit immediately following the current position of a file connected for stream access (ACCESS='STREAM').

If the file is positioned at its terminal position, p is assigned a value one greater than the number of the highest-numbered file storage unit in the file.

If the file is not connected for stream access or if the position of the file is indeterminate because of previous error conditions, p is assigned the value one.

If there are pending asynchronous data operations for the specified file, the value assigned to the POS= specifier is computed as if all pending data transfers have already completed.