option validvarname=v7;
libname Coolinfo "C:\Users\ravon\Desktop\practices";
I am attempting to create a libname; but each time in the LOG I have a note stating "Note: Library Coolinfo does not exist."
On my desktop I have a few SAS table in the practices folder. What am I doing wrong?
My version of SAS is 9.04.01M6
Wow, I just lost 2 hours on this very issue, after following the advice of the Little SAS Book: "SAS in insensitive to case so you can use uppercase, lowercase, or mixed case - whichever looks best to you". Clearly not a valid general statement.
Referencing SAS variables and other objects in SAS code is case insensitive. SAS does not care if your code use Name, NAME, nAME there is only one variable that it can match.
But your operating system, in this case unix, has its own rules that you also need to understand.
Rule of thumb: anything between quotes needs to be treated as case sensitive.
Hi @armoore
I used to experience the same issue and its was solved by using slash (/) instead of back slash (\). So please, try this:
libname Coolinfo "C:/Users/ravon/Desktop/practices";
Hope this helps,
Best,
I was able to get this to work
libname XO xlsx "C:/Users/ravon/Documents/np_info.xlsx";
The LOG states
Since the XLSX libname can be used to create a new file, SAS does not access the file before you actually try to read from or write to the library. Therefore the success of the libname statement itself does not mean anything.
SAS Studio is part of a server installation (as it needs a web server and web application server to run).
If the server name in your browser's address line for the Studio window is not localhost, then your SAS will most probably run on a remote server, and you cannot access your C: drive from there.
Because I'm not able to access my C: drive using SAS Studio. Would that be the reason why I'm not able to save data sets to that library name example.
Where is the version of SAS that you are using SAS/Studio to connect to running? Is it running on your local machine (where you are running the browser that is connecting to SAS/Studio webpage?). If you are using the free SAS University Edition then it is running in a virtual machine, so it is not really running on your machine.
But SAS/Studio provides a nice panel to let you browse the files that the SAS server can see. Find the file that you want to read (or the directory where you want to write to) in that panel. Right click on it and ask for Properties. That will show you the path that SAS is using the see that file. Copy that path into your SAS code.
@armoore wrote:
My version of SAS is 9.04.01M6.
Yes, Its I am running on my labtop where I have to connect to the SAS/Studio webpage.
If I right click on the folder on my desktop. Then, select properties and copy location this is what is seen C:\Users\ravon\Desktop
There isn't any "desktop" in SAS/Studio, checking the desktop on your PC does not help anything. Everything in SAS/Studio is in your browser. Look at the Server Files and Folders area of the SAS/Studio browser window for file you want and check the properties there. Can that see a folder named C:\Users\ravon? Or do you see only the /folders/myfolders/ area that the virtual Machine were the SAS University Edition version of SAS is running? Or something else?
I have attached pictures of my view of the Server Files and Folders
You use SAS on Demand for Academics, the "odaws" on the top of your directory tree is the clue. Your SAS does not run on your desktop, it runs in the AWS cloud. Files must be uploaded through SAS Studio.
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.