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.
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
you might need to add /data to your library path so that SAS knows where the data is.
/home/YOURUSERID/EPG194/data
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?
Expand the Server Files and Folders tab in the left hand panel to explore what files are actually on your server.
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.
Hi Tom,
Thank you for your advice. The problem was finally solved due to everyone`s help. Again, I really appreciate your help.
Zoe
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.
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
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
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!
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.
Ready to level-up your skills? Choose your own adventure.