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!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: