FORTRAN Reference Manual

Utility Routines
FORTRAN Reference Manual528615-001
15-23
Using SMU Routines
Using SMU Routines
To reference an SMU routine in a program unit, you must declare it in a GUARDIAN
directive. (The GUARDIAN directive is described in Section 10, Compiler Directives
.)
The following example shows how to declare the SMU routine GETPARAMTEXT as a
Guardian procedure:
?GUARDIAN GETPARAMTEXT
You must declare the routine before the first FORTRAN statement that calls that
procedure.
SMU routines operate on copies of the process creation messages that establish the
execution environment for a program. Copies of these messages are not saved
automatically; you must request them using the SAVE compiler directive. During
process creation the messages selected by a SAVE directive are saved in an area
inaccessible to the FORTRAN program.
Figure 15-1. Process Messages Manipulated by the SMU
Saved
Messages
"Parent"
FORTRAN
Process
Names and associated values from PARAM commands
Logical file names and associated actual file names from ASSIGN commands
STARTUP message with the names of the IN file and the OUT file,
the default volume and subvolume, and the text string that follows
the closing "/" of the RUN command parameter list.
Descendant
Process
The parent process:
! Saves the messages
! Modifies the messages
! Calls CREATEPROCESS to launch
a new process, passing to it the
modified ASSIGN, PARAM, and
STARTUP messages
VST1501.vsd