Open a new file, write a LIBNAME statement to create a library named PG1 that reads SAS tables in the data folder. Here is an example of the code:
It says "you will need to change the path to the path of YOUR data folder". so here is what I have:
libname pg1 base "/Files/PG1/data";
Then it tells me that "Library PG1 does not exist", can anyone tell me what the right path is (The data needed is in the PG1 folder)?
I'm using SAS University Edition and I'm using Macbook.
1. I don't use UE but maybe
libname pg1 base "~/Files/PG1/data";
works?
1. I don't use UE but maybe
libname pg1 base "~/Files/PG1/data";
works?
Thank you. It works.
> The data needed is in the PG1 folder
Why do you point to the data folder then?
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: