Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change default file save directory

Status
Not open for further replies.

lijason

Programmer
Feb 15, 2003
1
US
I am new in SAS. I think the SAS is installed in our server somewhere. But my workspace is in drive D. However, every time when I tried to open or save a file, the dialog annoyingly shows a directory deep inside C drive. Could anyone tell me how to set my own default open/save file location? thanks.

Jason
 
Hi Jason,

I assume you want to store datastep code from the program editor, e.g. via dlgsa command. The default directory is set in the SAS config as parameter SASUSER. I am using SAS 8e on my machine, installed locally, OS is a German Windows version, therefore the directory "Eigene Dateien" (means personal files). Near top of the file SASv8.CFG you'll spot a line similar to this:

Code:
-SASUSER "C:\WINDOWS\Profiles\account\Eigene Dateien\My SAS Files\V8\"

This is what needs changing. When you have that installed on your network drive (it is in the same dir as the SAS executable), you should copy it locally and edit it to not annoy other users. When starting SAS you have to supply the new config as a startup parameter, e.g.:
Code:
"C:\Programme\SAS\V8\sas.exe" -CONFIG "C:\MySetup\SASV8.CFG"
That should do it - haven't tested, late here in Germany now ;-)

Cheers,
Matthias
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top