06-14-2016 10:43 AM
How do I assign a folder called myfiles to the permanent library sasuser.
The folder myfiles is on my desktop and it contains datasets. I want the folder to be assigned in the permanent library sasuser. So everytime I open SAS, I see myfiles folder in the SASUSER library.
I tried one way of doing it. But, I want the effiecient way of assigning the folder to SASUSER library.
I did like this:
libname x "path";
I tried doing the below statement but did not work;
libname sasuser.myfiles 'path';
06-14-2016 10:49 AM
SASUSER is a libname created by the SAS system to point to its metadata files, you do Not want to change that as it will break your whole system. If you want to have user created libnames at the start of each session then you put them in the startup files - for Base SAS this is the autoexec.sas, which is the file that is loaded upon creating a new session and any code in there will be executed before you get the interactive window.
06-14-2016 10:57 AM
06-14-2016 11:05 AM - edited 06-14-2016 11:08 AM
Echo with @RW9. You don't want to mess around those SAS factory folders. If you absoultely 'have to' to do it, depending on your SAS deployment and your access permission, try following at your own risk:
1. Locate your SAS config file, for local deployment, you may find it some where like:
2. Open it with a text editor (e.g. notepad), find the following line (it could be completely different depending on your deployment)
-SASUSER "?FOLDERID_Documents\My SAS Files\9.4"
3. Modify it to (not in literal):
-SASUSER "your myfiles path"
4. Save it and restart your SAS.
Oh, forgot mention: you need to save an orignal copy somewhere before you modify it, just in case.