Hello,
I am using Windows 10 and SAS 9.4.
SAS is running on my c: drive, but I would like the WORK directory to be on my d: drive.
How do I accomplish this?
Thank you and sincere regards.
Hello @knowlei,
I believe your dash sign (-WORK) is not the right one. I would just type it with your keyboard instead of copying and pasting it.
Once you are ready, save the config file and re-start your SAS session.
There's lots of different ways, depending on what you allowed to re-configure. (Some work sites lock down config files on workstations.)
Ideally, look for the sasv9.cfg file in (or under) your $SASHOME folder - this will have an option something like
-WORK "C:\Temp"
which you can change.
Useful resources:
Thank you for trying.
When I change the .cfg file as you have suggested I get an error message, even when I point to a valid directory on my d: drive. I tried the following within the sasv9.cfg file by replacing the existing option for -WORK:
–WORK "d:\sas temporary files"
ERROR: Unrecognized SAS option name d:\sas temporary files
ERROR: Unrecognized SAS option name -WORK
ERROR: (SASXKRN): KERNEL INITIALIZATION RESOURCE FAILED
ERROR: Unable to initialize the SAS Kernel
In the existing sasv9.cfg file the option for -WORK falls below a line that states "DO NOT EDIT BELOW THIS LINE" . The -WORK option reads as follows:
-WORK "!TEMP\SAS Temporary Files"
This results in the WORK library being allocated to my puny c: drive rather than my nice d: drive.
You can change it in the config.sas file as shown at this link http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n1qr5dmzagn9krn1lt...
(config.sas - version 6? Is this what is now sasv9.cfg? I came in at v8.2..)
Still depends on whether or not the user can modify config files or if it's locked down.
@AndrewHowell wrote:
(config.sas - version 6? Is this what is now sasv9.cfg? I came in at v8.2..)
Still depends on whether or not the user can modify config files or if it's locked down.
With Windows you can make a new program Icon and modify the parameters to point to your custom sasv9.cfg.
Yes, this means that your custom config may not be used when some of the right-click and select options are chosen but works for most things.
Hello @knowlei,
I believe your dash sign (-WORK) is not the right one. I would just type it with your keyboard instead of copying and pasting it.
Once you are ready, save the config file and re-start your SAS session.
This is why we keep nagging people to post code in the correct manner with the {i} or little running man buttons. And to NEVER, EVER save code in a word processor.
How do you work with SAS? Do you use Enterprise Guide, or SAS with Display Manager?
@SSmanjunath - welcome to the SAS Community. To give better visibility to your problem you should create a new post and include a screenshot of the EG connection error details.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.