Usage Note 36230: Changing the location of the _STPWORK directory that is used by the SAS® Stored Process Server or SAS® Workspace Server
In SAS® 9.2 M2 and later, you can change the location of the _STPWORK directory which is used by the SAS® Stored Process Server or SAS Workspace Server when running a SAS® Stored Process that uses the %STPBEGIN macro to create Package output.
For the Windows and Unix operating systems, you can specify the location of the _STPWORK directory by setting the STPWORK environment variable in the sasv9_usermods.cfg configuration file. For example:
-set STPWORK C:\yourdir\
The sasv9_usermods.cfg configuration file, used when starting the SAS Stored Process Server, is located at a path that is similar to the following:
<SAS-configuration-directory>/Lev1/SASApp/sasv9_usermods.cfg
For the z/OS operating system, you can specify the location of the _STPWORK directory by setting the STPWORK environment variable in the StoredProcessServer_usermods.sh shell script. For example:
#!/bin/sh
#
# StoredProcessServer_usermods.sh
#
# This script extends StoredProcessServer.sh. Add local options
# to this file so they will be preserved.
#
USERMODS_OPTIONS="-set 'STPWORK user-specified-path/stpwork' -UTILLOC='user-specified-path/SampleData/cubework'"
The StoredProcessServer.sh shell script, used when starting the SAS Stored Process Server, is located at a path that is similar to the following
<SAS-configuration-directory>/Lev1/SASApp/StoredProcessServer/StoredProcessServer_usermods.sh
If the environment variable STPWORK is not set when the server is started, then the %STPBEGIN macro determines a temporary directory based on the operating system and places that value in the _STPWORK reserved macro variable.
If the environment variable STPWORK is set when the server is started, then the %STPBEGIN macro uses the directory specified as a starting point to create the temporary directory.
When troubleshooting, you can output the value of the _STPWORK macro variable by including the following statements in a SAS Stored Process:
%stpbegin; %put _STPWORK value is: &_STPWORK;
Operating System and Release Information
SAS System | SAS Integration Technologies | z/OS | 9.2 TS2M2 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M2 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M2 | |
Microsoft® Windows® for x64 | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M2 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M2 | |
Microsoft Windows XP Professional | 9.2 TS2M2 | |
Windows Vista | 9.2 TS2M2 | |
64-bit Enabled AIX | 9.2 TS2M2 | |
64-bit Enabled HP-UX | 9.2 TS2M2 | |
64-bit Enabled Solaris | 9.2 TS2M2 | |
HP-UX IPF | 9.2 TS2M2 | |
Linux | 9.2 TS2M2 | |
Linux for x64 | 9.2 TS2M2 | |
OpenVMS on HP Integrity | 9.2 TS2M2 | |
Solaris for x64 | 9.2 TS2M2 | |
*
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.
In SAS® 9.2 M2 and later, you can change the location of the _STPWORK directory which is used by the SAS® Stored Process Server or SAS Workspace Server when running a SAS® Stored Process that uses the %STPBEGIN macro to create Package output.
Type: | Usage Note |
Priority: | medium |
Date Modified: | 2019-07-26 10:06:32 |
Date Created: | 2009-06-15 12:57:01 |