Specifications

Visual Fortran Run-Time Errors Page 6 of 48
In the following table, the first column lists error numbers returned to IOSTAT variables when an I/O
error is detected.
The first line of the second column provides the message as it is displayed (following forrtl:),
including the severity level, message number, and the message text. The following lines of the second
column contain the status condition symbol (such as FOR$IOS_INCRECTYP) and an explanation of
the message.
For information about severity levels, see the Introduction.
Number Severity Level, Number, and Message Text; Condition Symbol and Explanation
31
severe (31): Mixed file access modes
FOR$IOS_MIXFILACC. An attempt was made to use any of the following
combinations:
Formatted and unformatted operations on the same unit
An invalid combination of access modes on a unit, such as direct and sequential
A DIGITAL Fortran RTL I/O statement on a logical unit that was opened by a
program coded in another language
32
severe (32): Invalid logical unit number
FOR$IOS_INVLOGUNI. A logical unit number greater than 2,147,483,647 or less than
zero was used in an I/O statement.
33
severe (33): ENDFILE error
FOR$IOS_ENDFILERR. One of the following conditions occurred:
The file was not a sequential organization file with variable-length records.
The file was not opened for sequential or append access.
An unformatted file did not contain segmented records.
The DIGITAL Fortran RTL I/O system detected an error during execution of an
ENDFILE statement.
34
severe (34): Unit already open
FOR$IOS_UNIALROPE. A DEFINE FILE statement specified a logical unit that was
already opened.
35
severe (35): Segmented record format error
FOR$IOS_SEGRECFOR. An invalid segmented record control data word was detected
in an unformatted sequential file. The file was probably either created with