FORTRAN Reference Manual

FORTRAN Reference Manual528615-001
G-1
G
Run-Time Diagnostic Messages
FORTRAN displays run-time diagnostic messages for the following types of errors:
I/O errors
Intrinsic function errors
Common run-time environment messages
Topics covered in this section include:
The first part of this appendix describes the features of FORTRAN statements and
utility routines that enable FORTRAN programs to handle run-time errors.
The second part of this appendix describes the format and content of the diagnostic
messages that the FORTRAN run-time environment writes to your log file. It describes
the format of messages for programs compiled with ENV OLD in effect as well as for
programs compiled with ENV COMMON in effect.
I/O Errors
FORTRAN statements and utility routines that call Guardian system procedures might
report run-time errors.
Most of the statements during which an error can occur include the IOSTAT = ios and
ERR = label parameters that enable your program to detect the error and continue
running.
ios is an integer variable or integer array element in which FORTRAN returns an error
number if an error occurs while the statement or routine is executing. If an error does
not occur, the statement or routine sets ios to zero. For more information about the
error numbers returned in ios, see the Error Numbers on page 6-5.
label is the label of an executable statement in the current program unit to which
FORTRAN transfers control if an error occurs while the statement or routine is
executing.
If you specify ios but not label, your program continues executing with the
FORTRAN statement that follows the statement during which the error occurred. You
Topic Page
I/O Errors
G-1
START BACKUP and CHECKPOINT Errors G-2
Intrinsic Errors G-3
Error Messages G-3
Diagnostic Messages With ENV OLD G-3
Diagnostic Messages With ENV COMMON G-6