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?

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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