BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
NikiV
Calcite | Level 5

I'm following the programming 2 course and tried to set up the practice data. I got the EPG2V2 folder in server files and folders. But now I tried to make a libref: 

libname PG2 '/home/u63625667/EPG2V2';
run;

The library PG2 get's made but it's empty? Even though I don't get any errors. Ideas to fix this? 

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ
Hi:
Typically, in these programs for the Programming 1 and Programming 2 course, the correct path would be something like:
libname pg2 '/home/u12345678/EPG2V2/data';
(note that you specify the data subfolder in the LIBNAME statement, same as in the LIBNAME you needed to use for the PG1 library).
I recommend that you go back and make sure that you have a data subfolder and that you have data sets in the data subfolder. If you do NOT have a data subfolder or if you have a data subfolder but it is empty, that is an indication that the data setup program did not run correctly.
Cynthia

View solution in original post

4 REPLIES 4
andreas_lds
Jade | Level 19

Is there a message in the log like "libref PG2 has been successfully assigned" ?

Are any dataset in the directory? Are the names in lowcase?

NikiV
Calcite | Level 5
Yes, there's a message in the log. And I'm not sure what the directory is. But the EPG2V2 folder is not empty while the PG2 is. Also the path is copy pasted from the properties of EPG2V2.
Cynthia_sas
SAS Super FREQ
Hi:
Typically, in these programs for the Programming 1 and Programming 2 course, the correct path would be something like:
libname pg2 '/home/u12345678/EPG2V2/data';
(note that you specify the data subfolder in the LIBNAME statement, same as in the LIBNAME you needed to use for the PG1 library).
I recommend that you go back and make sure that you have a data subfolder and that you have data sets in the data subfolder. If you do NOT have a data subfolder or if you have a data subfolder but it is empty, that is an indication that the data setup program did not run correctly.
Cynthia
NikiV
Calcite | Level 5
Apparently I had to add 'data' to the path to fix my problem, thank you!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 4 replies
  • 940 views
  • 0 likes
  • 3 in conversation