BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
aabbccwyt
Obsidian | Level 7

 

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:

libname pgl base s:/workshop/data;

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)?Server Files and Folders . wfic-sas-comput ► Folder Shortcuts - Files (Home) activities A A A A A data demos EPG194 output PG

I'm using SAS University Edition and I'm using Macbook.

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

1. I don't use UE but maybe 

libname pg1 base "~/Files/PG1/data";

works?

 

View solution in original post

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

1. I don't use UE but maybe 

libname pg1 base "~/Files/PG1/data";

works?

 

aabbccwyt
Obsidian | Level 7

Thank you. It works.

ChrisNZ
Tourmaline | Level 20

>  The data needed is in the PG1 folder

Why do you point to the data folder then?

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 556 views
  • 0 likes
  • 2 in conversation