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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 4 replies
  • 524 views
  • 0 likes
  • 3 in conversation