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

Hi,

I am new to SAS and using the free e-learning program to do the course “SAS Programming 1: Essentials”. I am using SAS studio and followed the “Setup Instructions for SAS OnDemand for Academics: SAS Studio ” to set up the data sets and practice files. I didn’t run into any issues until I was trying to do the “Practice Level 1: Exploring Data with Procedures” under Lesson3. Here is what my screen looks like after running the code. I also notice that there is nothing under PG1.

SAS.png

I have seen answers for similar posts but still unable to figure out why this is not working. I would really appreciate for any help!

 

Thanks,

Zoe

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26
If the data creation program from the course overview section ran correctly, then you should be able to go to the Server Files and Folders pane and find the data in the data subdirectory under EPG194 main folder. If there are NOT data files (SAS data sets) in the data folder, then that means either you did not run the program successfully or the data got accidentally deleted.

You can ALWAYS follow the instructions in the course overview section to run the program again and refresh the data.

However, I suggest switching to server files and folders pane, finding the EPG194/data subfolder and right clicking on the folder to choose Properties so you can see the exact location for your code.

Rerunning the data creation program will not change any of the programs you might have already changed. It will just refresh the data.

Cynthia

View solution in original post

9 REPLIES 9
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

you might need to add /data to your library path so that SAS knows where the data is.

 

/home/YOURUSERID/EPG194/data

ZoeZhao
Fluorite | Level 6

Thank you for your speedy reply!

 

I did add data to my library path. In the picture, you can see there is a NOTE saying"Libref PG1 was successfully assigned as follows...",

but there is still nothing under PG1. Do you know why?

 

 

Tom
Super User Tom
Super User

Expand the Server Files and Folders tab in the left hand panel to explore what files are actually on your server.

image.png

If you find the file named "np_summary.sas7bdat". You can look at the Properties of the file to see exactly what path to use in your LIBNAME statement.  Make sure that the path you use is exactly the same as you see in the Properties since Unix file system is case sensitive.  Also the filename (just the member name and extension, not the folder path) needs to be in all lowercase letters because SAS will use lowercase letters when looking for the file.

 

If you cannot find it then find the instructions from earlier steps that had you make the dataset and re-run those steps.

ZoeZhao
Fluorite | Level 6

Hi Tom,

 

Thank you for your advice. The problem was finally solved due to everyone`s help. Again, I really appreciate your help.

 

Zoe

VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

If I remember correctly when I did the activities one of the task was to assign that specific library.

@ZoeZhao confirm that the data excised in the directory path as I have in my earlier response.

if you do then you have incorrectly identified a path to PG1 for the library assignment.

 

 

Cynthia_sas
Diamond | Level 26
If the data creation program from the course overview section ran correctly, then you should be able to go to the Server Files and Folders pane and find the data in the data subdirectory under EPG194 main folder. If there are NOT data files (SAS data sets) in the data folder, then that means either you did not run the program successfully or the data got accidentally deleted.

You can ALWAYS follow the instructions in the course overview section to run the program again and refresh the data.

However, I suggest switching to server files and folders pane, finding the EPG194/data subfolder and right clicking on the folder to choose Properties so you can see the exact location for your code.

Rerunning the data creation program will not change any of the programs you might have already changed. It will just refresh the data.

Cynthia
ZoeZhao
Fluorite | Level 6

Hi Cynthia,

 

Thank you for your reply. I double checked my code, changed my code in different ways and finally found the issue based on your advice. It was actually not a big problem but I didn`t realize the difference between assigning PG1 to folder EPG194 and assigning PG1 to its subfolder EPG194/data. As soon as I corrected the file path to EPG194/data's file path, it worked. 

 

Zoe

venkatkumar
Fluorite | Level 6
Hello Zoe,

Am going throught the exact problem which you have mentioned here. I could create the PG1 library successfully but when i wanted to print the data it says
"ERROR: File PG1.NP_SUMMARY.DATA does not exist."
Could you please tell me how you solved this ?
Thank you
Ashwini
ZoeZhao
Fluorite | Level 6

Hi VDD,

 

Thank you for your reply. I tried few times and finally got it right based on your suggestion. I didn`t get what you meant at the beginning but then I noticed what my problem was. It works now! Thank you so much again for your advice and quick response.

 

Zoe

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
  • 9 replies
  • 4404 views
  • 4 likes
  • 5 in conversation