jump to navigation

Reassign location on SAS “WORK” folder March 6, 2007

Posted by riskopedia in SAS.

Have you ever ran into problems that your harddrive is not big enough to run your temporary dataset? Or you are running a big job and wanted to use your external harddrive instead?

Normally when you start a new session in SAS, a “work” folder is automatically linked to the location of SAS temporary folder. If you want to change it, here are two ways of doing it (the following only applies to PC SAS version, not E-Guide or any other Server type SAS. Will explain later)

  1.  Go to your config.sas, usually is in your SAS programs folder. Search for “-work”, then you should find a line of code with –> -work “C:/path….”, you just need to change this path, and then save the config.sas files. Hence, the work folder will point to the new location when start up next time
  2. Another way to do it, is alter the shortcut by adding –> -work “path name”. That should resolve your problem too.

Reason why it cannot apply to E-Guide server version because the config.sas file is on the SAS server, rather than User’s PC. Hence, all you need to do is asking your SAS Server admin to change that for you.



1. OG - June 22, 2007

excellent thank you!

as a remark, when sas terminates unexpectedly, it does not empty its own “work” folder. consequence, i had gigs of files on my hard drive left on the sas “work”. and the windows search engine seemed to ignore these files, so i had to delete them manually.

also i find it useful to see the progress of these files when sas is doing heavy computations, hence i reassigned the “work” folder according to your instructions.

2. aaron - July 8, 2007

the sas config file is called sasv9.cfg (version 9.1.2) NOT config.sas as mentioned above.

default location is here: C:\Program Files\SAS\SAS 9.1\nls\en

3. Amee - December 22, 2012

This excellent website really has all of the information I needed about
this subject and didn’t know who to ask.

4. Elana - April 17, 2013

Howdy just wanted to give you a quick heads up. The text in your content seem to be running off the screen in Firefox.
I’m not sure if this is a formatting issue or something to do with internet browser compatibility but I thought I’d post to let you know.
The design look great though! Hope you get the issue
solved soon. Cheers

5. how you can get pregnant - August 4, 2013

I’ve been surfing online more than 2 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my view, if all webmasters and bloggers made good content as you did, the internet will be much more useful than ever before.

6. having trouble getting pregnant the third time - August 8, 2013

Yesterday, while I was at work, my sister stole my iPad and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation.

My apple ipad is now broken and she has 83 views. I know this is
totally off topic but I had to share it with someone!

7. trying to get pregnant tips - August 8, 2013

I like the valuable info you supply on your articles.
I’ll bookmark your blog and check again here frequently. I am somewhat sure I will learn many new stuff right here! Best of luck for the next!

8. Robert - December 17, 2015

Do you know if you can specify multiple directories for SAS work int he configuration files on Windows? It looked like you could specify multiple paths in the Unix version, but not sure about windows.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: