The spawner uses UNIX System Services (USS) to invoke a USS file system shell script
that starts SAS.
Example:
-sascmd "/usr/local/bin/spawnsas.sh -nosasuser -noterminal"
This command assumes that a shell script named
spawnsas.sh
is
installed in
/usr/local/bin
. The command specifies the -NOSASUSER
SAS system option . The
-NOTERMINAL option prevents the display of a dialog box in the server session. In addition, the
two double quotation marks around the SAS options are required.
The shell script interprets the parameters that are received from the spawner and
builds a TSO command that starts a SAS session. The sample UNIX shell script
parses the command and interprets environment variables to build a TSO command to
start SAS. This command is executed using either the USS /bin/tso
command
or the USS /bin/tsocmd
command.
You must change the
values of &prefix
to the high-level qualifier
of your CList library that contains the TSO command to start SAS.
The BPX environment variables are specified to improve the start-up
performance of a spawned SAS session.
A sample USS script file can be found in ‘&prefix.BAMISC(SPNCSHEL)’
.
Note: The /bin/tso command mentioned
above is used by default in the UNIX shell script. If you need to
run authorized commands in SAS 9.3 and later releases, use the /bin/tsocmd
command instead. See
Usage Note 54530 for information about setting the /bin/tsocmd command
in the UNIX shell script.