FORTRAN Reference Manual
Utility Routines
FORTRAN Reference Manual—528615-001
15-2
FORTRANCOMPLETION Routine
FORTRANCOMPLETION Routine
FORTRANCOMPLETION allows a FORTRAN program to specify completion codes
and related information when it terminates.
FORTRANCOMPLETION performs the same activities (closing files, displaying a
message on the home terminal, and so forth) as the FORTRAN STOP statement. Use
FORTRANCOMPLETION instead of a FORTRAN STOP statement if you need to
specify one or more FORTRANCOMPLETION arguments to the STOP or ABEND
procedures.
abend-or-stop
is an integer expression that specifies whether to call the STOP or ABEND system
procedure to terminate execution. If abend-or-stop is zero, or if you omit
abend-or-stop, FORTRANCOMPLETION calls STOP. Otherwise, it calls
ABEND.
FORTRAN_SETMODE_ COMMON Calls the SETMODE system procedure
unless buffered spooling has been
successfully initiated for the file, in which case
FORTRAN_SETMODE_ calls the
SPOOLSETMODE spooler procedure.
FORTRAN_SPOOL_OPEN_ COMMON Provides level-1, level-2, or level-3 access to
the HP spooler. FORTRAN_SPOOL_OPEN_
combines the functionality of a FORTRAN
OPEN statement and a subsequent
FORTRANSPOOLSTART routine.
FORTRANSPOOLSTART OLD Provides level-2 and level-3 access to the HP
spooler. Your program must execute an
OPEN statement to open the spooler file
before it calls FORTRANSPOOLSTART.
SSWTCH COMMON Returns the value of a specified program
switch.
CALL FORTRANCOMPLETION [ ( [ abend-or-stop ]
[, [ message-length ]
[, [ message ]
[, [ completion-code ]
[, [ termination-info ]
[, [ spi-ssid ]
[, [ text-length ]
[, [ text ] ]]] ]]] ] ) ]
Table 15-1. FORTRAN Run-Time Utility Routines (page 2 of 2)
Routine ENV Action










