Usage Note 37593: Dynamic allocation of the SAS® Work folder in a Windows operating environment
When using SAS® in a Windows operating environment, you might want to specify a list of folders to be used as the SAS Work library. To do so, follow these steps.
- Locate your sasv9.cfg file:
- SAS® 9.2 location: C:\Program Files\SAS\SASFoundation\9.2\nls\en\sasv9.cfg
- SAS® 9.3 location: C:\Program Files\SASHome\SASFoundation\9.3\nls\en\sasv9.cfg
- Create a TXT file with a list of directories to be used as the new SAS Work libraries. The list should look similar to the following:
E:\SASWork
D:\SASWork
F:\SASWork
METHOD=RANDOM
The METHOD= line specifies which strategy SAS is to use for determining the location of the Work library. There are two valid settings for the METHOD parameter:
METHOD=RANDOM
METHOD=SPACE
When METHOD=RANDOM is specified, SAS selects a location from the list at random, whereas with METHOD=SPACE, SAS selects the Work location from the list that has the most available free space.
- Update your sasv9.cfg file to show the location and filename of the TXT file that you just created. The line should look similar to the following:
–work “C:\SASWork\filename.txt”
For more information about dynamic allocation of the Work directory in SAS® 9.4 in a Windows operating environment, see SAS® 9.4 Companion for Windows - Fourth Edition.
Operating System and Release Information
SAS System | Base SAS | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows XP 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows XP Professional | 9.21 | | 9.2 TS2M0 | |
Windows Vista | 9.21 | | 9.2 TS2M0 | |
Microsoft Windows 8 Enterprise 32-bit | 9.3 | | | |
Microsoft Windows 8 Enterprise x64 | 9.3 | | | |
Microsoft Windows 8 Pro 32-bit | 9.3 | | | |
Microsoft Windows 8 Pro x64 | 9.3 | | | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.3 | | | |
Microsoft Windows 8.1 Enterprise x64 | 9.3 | | | |
Microsoft Windows 8.1 Pro | 9.3 | | | |
Microsoft Windows 8.1 Pro 32-bit | 9.3 | | | |
Microsoft Windows Server 2008 | 9.3 | | | |
Microsoft Windows Server 2008 R2 | 9.3 | | | |
Microsoft Windows Server 2008 for x64 | 9.3 | | | |
Microsoft Windows Server 2012 Datacenter | 9.3 | | | |
Microsoft Windows Server 2012 R2 Datacenter | 9.3 | | | |
Microsoft Windows Server 2012 R2 Std | 9.3 | | | |
Microsoft Windows Server 2012 Std | 9.3 | | | |
*
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.
Date Modified: | 2015-11-24 11:17:46 |
Date Created: | 2009-10-26 16:27:36 |