I am trying to do the Lesson 3 Level 1 practice: Exploring Data with Procedures, but I am having some trouble getting started. I set up the pg1 library and then run the proc print code, but each time, the SAS program tells me that PG1.NP_SUMMARY.DATA does not exist. How do I fix this so that I can begin the practice?
Do you know where the pg1.np_summary table is? They reference it for the assignment, but I can't find it for the assignment and they also mention opening p103p01.sas, which is a bit confusing.
I am using SAS Studio in the virtual lab section provided.
Thank you so much! This worked and the table appeared
Hi:
Here are possible locations for the PG1 library on different practice platforms:
SAS Virtual Lab inside Programming 1 course:
S:\workshop\EPG1V2\data
libname PG1 "S:\workshop\EPG1V2\data";
SAS OnDemand for Academics:
/home/<userID>/EPG1V2/data
libname pg1 "/home/<userID>/EPG1V2/data" ;
with a userID of u1234567, then the path would be: libname pg1 "/home/u1234567/EPG1V2/data" ;
SAS on my local Windows machine with a local install of SAS:
c:\SAS_Class\EPG1V2\data
libname PG1 "c:\SAS_Class\EPG1V2\data";
SAS on a Unix machine with a server copy of SAS:
/usr/bin/Classes/EPG1V2/data
libname PG1 "/usr/bin/Classes/EPG1V2/data";
SAS Enterprise Guide with a local or server version of SAS -- the setup and data creation programs use a helper variable called &PATH to hold the location of your WORK folder. So on EG, you do this:
libname PG1 "&path";
Notice that on all interfaces, except for EG, the top level folder path will be different depending on whether your SAS is installed on a Windows or Unix-based system. But starting wit the course folder EPG1V2 part of the path, the subfolders under that main folder should be the same for every installation platform.
You should be able to expand the EPG1V2 folder and expand the data subfolder, assuming you have set things up correctly and scroll through the list of files to see the data files in this subfolder. If you have a Libraries panel (such as in SAS Studio), you can open the Libraries panel to check that you have run the LIBNAME statement for the class before trying to run any programs.
Hope this helps,
Cynthia
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.
Find more tutorials on the SAS Users YouTube channel.