Hi, I have recently found that i have "library does not exist" appearing a NOTE on my log as opposed to a WARNING. Does anyone know under what circumstances we would get a warning vs a note?
You get the WARNING when you define TWO or more librefs that point to the non-existent location.
Not sure WHY, but the pattern is reproducible.
please show your libname statement
Here's the log showing the problem. It seems like SAS only flags a warning on the second attempt in assigning an invalid location. Has anyone encounter this and can confirm what i stated is the case.
32 libname LIB_A "\\NZ8037SPSAS2003\temp1";
NOTE: Library LIB_A does not exist.
33 libname LIB_B "\\NZ8037SPSAS2003\temp2";
NOTE: Library LIB_B does not exist.
34 libname LIB_C "\\NZ8037SPSAS2003\temp2";
NOTE: Libref LIB_C refers to the same physical library as LIB_B.
WARNING: Library LIB_C does not exist.
NOTE: Libref LIB_C was successfully assigned as follows:
Engine: V9
From your path syntax, I am assuming your SAS is running on a Windows environment?
If you paste the path in Explorer, can you see the content of the folder?
Is your answer yes to both these questions?
@DucatiJong - I just tested this on SAS9.4M2 and I get the same notes / warning in the SAS log. Despite the note saying "Libref LIB_C was successfully assigned" it doesn't appear in the EG library list. This looks like a bug to me.
You get the WARNING when you define TWO or more librefs that point to the non-existent location.
Not sure WHY, but the pattern is reproducible.
Hello everybody.
I am trying to do the most simple thing imaginable - assign LIBNAME to an existing folder - but for some reason it doesn't work.
Here's my statement:
LIBNAME sassets "C:\SAS Datasets";
And here's from the log;
The most obvious thing to check from that log is where is SAS actually running. Since your log is jumping form line number 1 to line number 70 you are most likely using Enterprise Guide or SAS/Studio to submit SAS to run on some other machine than the machine you are using to run Enterprise Guide or connect to the webserver that SAS/Studio is using. So that machine cannot see the path on your local machines C drive.
Tom, thank you for your attempt, but that's not it.
I m doing everything on the same machine. Have no idea what SAS version that OnDemand SAS Studio is using.
Yes, you are right, the log message jumps from line 1 to 72, which is another thing that's wrong.
I have only 1 line in my in my code
LIBNAME sassets "C:\SAS Datasets";
Everything else must be from your system.
Igor
@IgorF wrote:
Tom, thank you for your attempt, but that's not it.
I m doing everything on the same machine. Have no idea what SAS version that OnDemand SAS Studio is using.
Yes, you are right, the log message jumps from line 1 to 72, which is another thing that's wrong.
I have only 1 line in my in my code
LIBNAME sassets "C:\SAS Datasets";
Everything else must be from your system.
Igor
OnDemand SAS is running on some server at SAS.com. It cannot see your local C drive. All that you are running on your local machine is the browser that you used to launch the SAS/Studio interface. You need to reference the files on the OnDemand server. Use the Files and Folders panel of the SAS/Studio interface (the thing you are connecting to with your browser) to see what directories you have.
Check the properties to see exactly how to reference that directories. Here is the path I see for my home directory in ODA.
Ok, Tom, I understand that, thank you. But how exactly can I access my folders on that SAS server? I couldn't see your posting on Programming.
Co0uld you please give me the exact sequence of steps?
Tom, I changed my single line of code to
LIBNAME sassets "sasuser.v94";
sasuser.v94\ is what I found on the server.
Still didn't work.
Then created a new folder SAS Datasets and ran
LIBNAME sassets "sasuser.v94\SAS Datasets";
Still tno success (same exact log)..
Right click on the "home" folder and select PROPERTIES from the pop-up menu to see the properties of that folder.
Or just use normal Unix shortcut, ~ ,for your home directory.
libname home '~';
You can also just ask SAS where the SASUSER folder is:
73 %put %sysfunc(pathname(sasuser)); /home/tom.abernathy/sasuser.v94
PS I would never put anything into that sasuser folder. Probably doesn't matter for SAS On Demand, but on a normal server SAS has changed the name of that folder from release to release so not really a very reliable place to store things.
>ls -d sasuser* sasuser sasuser.v91 sasuser.v92 sasuser.v93 sasuser.v94
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.