When running the SAS® Stored Process Server, the XCMD option is turned off by default. So, by default, you will not be able to use the SYSTEM function, the X command, or the PIPE option in a FILENAME statement.
If you attempt to use the X command or SYSTEM function, you will receive the following warning message:
If you attempt to use the PIPE option in a FILENAME statement, you will receive the following error message:
In SAS® 9.2 and later for the SAS Stored Process Server on either Windows or UNIX, you can enable the XCMD option by doing the following:
In SAS 9.1.3, you can permit the use of the above commands by doing the following:
The steps to enable the XCMD and NOXWAIT options will be different in the Windows and UNIX environments. The steps for each environment are described below.
The following steps describe the approach to set these options for SAS 9.1.3 on a Windows platform.
Go to the SAS Object Spawner directory. For example:
Make a backup copy of your ObjectSpawner.bat file.
Edit the ObjectSpawner.bat file as follows:
start /b "Object Spawner"
and contains the -install option.
Change:
-install
to
-install -allowxcmd
This effectively adds the -allowxcmd option on the command line.
In a DOS window, go to the Object Spawner directory. For example:
Enter the following command (to remove the existing Windows Service for the Object Spawner):
Enter the following command (to create a Windows service for the Object Spawner, which uses the newly ObjectSpawner.bat file):
Start the Object Spawner as a Windows service. Or start it using the ObjectSpawner.bat file (if you are not using a Windows Service).
Edit the SAS configuration file that is used by the SAS Stored Process Server. For example:
Add the following two lines (near the bottom) in the SAS configuration file:
-xcmd -noxwait
The following steps describe the approach to set these options for SAS 9.1.3 on a UNIX platform.
Go to the Object Spawner directory. For example:
Make a backup copy of your ObjectSpawner.sh file.
Edit the ObjectSpawner.sh file as follows:
-saslogfile
to
-allowxcmd -saslogfile
Edit the SAS configuration file that is used when starting the SAS Stored Process Server. Add the following line (near the bottom) in the SAS configuration file:
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS Integration Technologies | Microsoft Windows XP Professional | 9.1 TS1M3 SP1 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP1 | |||
Microsoft Windows NT Workstation | 9.1 TS1M3 SP1 | |||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP1 | |||
Microsoft Windows 2000 Server | 9.1 TS1M3 SP1 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP1 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP1 | |||
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP1 | |||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP1 | |||
Linux | 9.1 TS1M3 SP1 | |||
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP1 | |||
64-bit Enabled HP-UX | 9.1 TS1M3 SP1 | |||
64-bit Enabled Solaris | 9.1 TS1M3 SP1 | |||
HP-UX IPF | 9.1 TS1M3 SP1 | |||
64-bit Enabled AIX | 9.1 TS1M3 SP1 | |||
Tru64 UNIX | 9.1 TS1M3 SP1 |
Type: | Usage Note |
Priority: | |
Topic: | System Administration ==> Servers ==> Integration Technologies |
Date Modified: | 2020-06-24 16:58:28 |
Date Created: | 2005-05-11 11:14:35 |