When I wanted to do the "Demo: Exploring Automatic SAS Libraries" task:
libname out "s:/workshop/output"; data class_copy1 out.class_copy2; set sashelp.class; run;
I have got the following message: ERROR: Library OUT does not exist.
Can anyone help me to fix it?
Thanks
Could you please check again if you have given the correct path, the path is case sensitive and also it should match exactly with the actual path.
Thanks, yes the path was wrong, thank you very much!
The correct code:
libname out "/home/u47411880/EPG194/output";
data class_copy1 out.class_copy2;
set sashelp.class;
run;
Hello,
I was having the same issue and used the pathway you mentioned, with my username instead, and it worked. However, if we're creating a folder called OUT in My Libraries, why does the end of the pathway contain output like this: "libname out "/home/myUserName/EPG194/output";? Shouldn't the pathway be "libname out "/home/myUserName/EPG194/out";?
Thank you.
@ehab wrote:The correct code:
libname out "/home/u47411880/EPG194/output";
data class_copy1 out.class_copy2;
set sashelp.class;
run;
Hi: If you followed the setup instructions for Programming 1, when you expand the EPG194 folder (older name) or the EPG1V2 folder (newest name), then you should see a subfolder named output. If you right click on the output subfolder under your main class folder and in the popup menu on the right click, choose Properties, you should next see the Properties window which will contain the FULL path to the output subfolder. The libname could be:
libname out "s:\workshop\EPG1V2\output";
or
libname out "/home/<yourUserID>/EPG1V2/output";
or
libname out "/home/<yourUserID>/EPG194/output";
or you may want to make an entirely NEW folder for your output under the class main folder. Let's say you do make a NEW folder under the EPG1V2 (or EPG194) class folder and you call the NEW folder mystuff, so when you want to write to the mystuff folder, your LIBNAME statement would change to something like:
libname out "/home/<yourUserID>/EPG1V2/mystuff";
Using the right-click and Properties method will ALWAYS show you the correct folder path you need to use.
Cynthia
Hi mkrisz,
Tested your code and it seems that the path is incorrect.
Change to:
libname out "s:\workshop\output\";
Note that the directory 's:\workshop\output\' must be available on the server.
Thank you, unfortunately my patch was wrong.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.