Usage Note 54530: How to modify a spawner in a z/OS operating environment to allow authorized commands in SASĀ® 9.3 and later
In a SAS 9.3 and later spawner environments (a SAS/CONNECT® spawner or an object spawner), you must modify the scripts for the spawned sessions to do any of the following:
- To access a tape data set
- To issue authorized commands using the SAS X command statement
- To use the SAS FILENAME PIPE engine
The scripts must be modified to use the /bin/tsocmd shell command instead of the /bin/tso shell command.
To implement the /bin/tsocmd shell command, for a SAS® Intelligence Platform configured spawner under z/OS, add the following statements to the end of /SAS-configuration-directory/Lev1/SASApp/ConnectServer_usermods.sh and /SAS-configuration-directory/Lev1/SASApp/WorkspaceServer_usermods.sh (depending on which type of server needs access).
TSOCMD=/bin/tsocmd
export BPXWRFD=YES
For a SAS® Foundation installed SAS/CONNECT spawner, modify the spawner's USS shell script with the following changes (highlighted in yellow):
# Initialize SAS startup command...
# Update language if not 'EN'
#
language='EN'
#cmd="/bin/tso -t %REXX${language}W0 $@"
cmd="/bin/tsocmd %REXX${language}W0 $@"
# When using /bin/tso, set TSOCMD=0.
# When using /bin/tsocmd, set TSOCMD=1.
TSOCMD=1
export BPXWRFD=YES
Additional Notes
To access a tape data set, the connecting user ID must have TSO MOUNT authority.
To issue authorized commands from within SAS using the SAS X command statement, or to use the SAS FILENAME PIPE engine, you must disable the NOXCMD system option and then restart the spawner.
-
To disable the -NOXCMD system option for a SAS/CONNECT spawner, set the spawner parameter -shell.
- For a SAS Foundation SAS/CONNECT Spawner, add the -shell parameter in the spawner's PARMS file.
- For a SAS Intelligence Platform SAS/CONNECT spawner running as a started task, add the -shell parameter to /SAS-cofiguration-directory/Lev1/ConnectSpawner/connectspawner.parm.
- For a SAS Intelligence Platform SAS/CONNECT spawner running as a USS process, add the following statement to /SAS-configuration-directory/Lev1/ConnectSpawner_usermods.sh:
USERMODS_OPTIONS=-shell
-
To disable the NOXCMD system option for a SAS Intelligence Platform object spawner, take the following steps in SAS® Management Console:
- Right-click the Application Server - Workspace Server
(also for Stored Process Server or Pooled Workspace Server).
- Select Properties.
- Click the Options tab.
- Click the Advanced Option button.
- Click the Launch Properties tab.
- Select the Allow XCMD box.
- Click OK.
Operating System and Release Information
SAS System | SAS/CONNECT | z/OS | 9.3 | | 9.3 TS1M0 | |
SAS System | SAS Integration Technologies | z/OS | 9.3 | | 9.3 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Changing the script from /bin/tso to /bin/tsocmd
Date Modified: | 2015-01-02 14:14:32 |
Date Created: | 2014-11-03 16:52:24 |