I am taking SAS programming 1, in the lesson 2, in the activity of Accessing Data Through Libraries ask us to create a library named NP, I followed the instruction, but I cannot find the NP library in the list of libraries. Is anything wrong in my code and how to access the library that you created?
Code: libname NP xlsx "/folders/myfolders/EPG194/data/np_info.xlsx";
Hi:
Here's what I see when I run the LIBNAME code on my OnDemand account:
You should be seeing something similar for your University Edition program.
Cynthia
I would check that the path and file name are correct - typically when you assign a library the error comes not when you make the assignment but when you try to use the library. I'm not sure why you are not seeing the library in my libraries but that explains why you haven't seen an error in the log.
Hi Cynthia,
Hi:
Here's what I see when I run the LIBNAME code on my OnDemand account:
You should be seeing something similar for your University Edition program.
Cynthia
Instead of just typing libname NP xlsx "/folders/myfolders/EPG194/data/np_info.xlsx";
I added two more statements:
proc contents data=np._all_ nods;
run;
and now I can see the NP in the libraries.
Thank you!
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.