FORTRAN Reference Manual
FORTRAN Reference Manual—528615-001
15-1
15 Utility Routines
The FORTRAN run-time library contains utility routines supplied by HP. These routines 
enable FORTRAN applications to:
•
Invoke system routines that are not available through standard FORTRAN 
constructs.
•
Fetch, alter, or delete the contents of PARAM, ASSIGN, and startup messages.
The latter routines comprise the Saved Message Utility (SMU).
Topics covered in this section include:
System-Related Routines
Table 15-1 lists routines that you can use to access various system-level functions.
Each routine is designed to be used either in modules in which you specify ENV OLD 
or in modules in which you specify ENV COMMON but never both. For information 
about the ENV directive, see Section 10, Compiler Directives.
Topic Page
System-Related Routines
15-1
Saved Message Utility 15-21
Using SMU Routines 15-23
Types of SMU Routines 15-24
Saved Messages 15-26
Checkpoint Considerations for Saved Message Utility Routines 15-28
Table 15-1. FORTRAN Run-Time Utility Routines (page 1 of 2)
Routine ENV Action
FORTRANCOMPLETION OLD Enables a FORTRAN program to specify 
completion codes and related information 
when it terminates.
FORTRAN_COMPLETION_ COMMON Enables a FORTRAN program to specify 
completion codes and related information 
when it terminates.
FORTRAN_CONTROL_ COMMON Calls the CONTROL system procedure unless 
buffered spooling has been successfully 
initiated for the file, in which case 
FORTRAN_CONTROL_ calls the 
SPOOLCONTROL spooler procedure.










