SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 37593: Dynamic allocation of the SAS® Work folder in a Windows operating environment

DetailsAboutRate It

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.

  1. 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
  2. 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:
  3. 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.

  4. 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:
  5. –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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASMicrosoft® Windows® for 64-Bit Itanium-based Systems9.219.2 TS2M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.219.2 TS2M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.219.2 TS2M0
Microsoft Windows XP 64-bit Edition9.219.2 TS2M0
Microsoft® Windows® for x649.219.2 TS2M0
Microsoft Windows Server 2003 Datacenter Edition9.219.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition9.219.2 TS2M0
Microsoft Windows Server 2003 Standard Edition9.219.2 TS2M0
Microsoft Windows XP Professional9.219.2 TS2M0
Windows Vista9.219.2 TS2M0
Microsoft Windows 8 Enterprise 32-bit9.3
Microsoft Windows 8 Enterprise x649.3
Microsoft Windows 8 Pro 32-bit9.3
Microsoft Windows 8 Pro x649.3
Microsoft Windows 8.1 Enterprise 32-bit9.3
Microsoft Windows 8.1 Enterprise x649.3
Microsoft Windows 8.1 Pro9.3
Microsoft Windows 8.1 Pro 32-bit9.3
Microsoft Windows Server 20089.3
Microsoft Windows Server 2008 R29.3
Microsoft Windows Server 2008 for x649.3
Microsoft Windows Server 2012 Datacenter9.3
Microsoft Windows Server 2012 R2 Datacenter9.3
Microsoft Windows Server 2012 R2 Std9.3
Microsoft Windows Server 2012 Std9.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.