CRE Programmer's Guide
CRE Services
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
2-54
FORTRAN Routines
FORTRAN Routines
If an error occurs in a TNS CRE or run-time library function called from a FORTRAN
routine, the TNS CRE returns control to the FORTRAN run-time library. If the error
occurred when your program executed an I/O statement and you specified either the
IOSTAT or ERR parameters on the I/O statement, the FORTRAN run-time library
returns control to your FORTRAN program; otherwise, the run-time library terminates
the program.
See the
FORTRAN Reference Manual for further details on FORTRAN error
processing.
TAL Routines
If an error occurs in a CRE function called from a TAL routine, the CRE returns control
to the TAL routine without taking any specific action. Because TAL does not have a
run-time library, your TAL routine must handle all errors explicitly.
pTAL Routines
If an error occurs in a CRE function called from a pTAL routine, the CRE returns
control to the pTAL routine without taking any specific action. Because pTAL does not
have a run-time library, your pTAL routine must handle all errors explicitly.
Reporting CRE Errors in the OSS Environment
If the CRE detects that the run-time environment is corrupted, it reports an error and
terminates the process. The flow chart in Figure 2-16
shows how the CRE determines
the file to which it writes error messages. Note that the write to the home terminal
might fail. Whether the write to the home terminal succeeds or fails, however, the CRE
calls PROCESS_STOP_.