HP Fortran Programmer's Reference (September 2007)

I/O runtime error messages
Runtime I/O errors
Appendix A 661
Runtime I/O errors
The error information listed in this section includes the codes returned by IOSTAT=, plus the
following:
The message that the runtime system would send to standard error if you did not include
the IOSTAT= specifier.
A diagnosis of the conditions that might have resulted in the error.
Actions that the programmer can take to correct the error.
Table A-1 Runtime I/O errors
Error
no.
Error message Description Action
900 ERROR IN FORMAT FORMAT statement
syntax contains an error.
See the “I/O and file
handling” chapter for the
syntax of the format
specification and edit
descriptors.
901 NEGATIVE UNIT
NUMBER SPECIFIED
Unit number was not
greater than or equal to
zero.
Use a nonnegative unit
number.
902 FORMATTED I/O
ATTEMPTED ON
UNFORMATTED FILE
Formatted I/O was
attempted on a file
opened for unformatted
I/O.
Open the file for
formatted I/O or perform
unformatted I/O on this
file.
903 UNFORMATTED I/O
ATTEMPTED ON
FORMATTED FILE
Unformatted I/O was
attempted on a file
opened for formatted I/O.
Open the file for
unformatted I/O or
perform formatted I/O on
this file.
904 DIRECT I/O
ATTEMPTED ON
SEQUENTIAL FILE
Direct operation
attempted on sequential
file, direct operation
attempted on opened file
connected to a terminal.
Use sequential
operations on this file,
open file for direct access,
or do not do direct I/O on
a file connected to a
terminal.