Hello,
I am working through the SAS Programming 1: Essentials Training and I am in lesson 2: Accessing Data and I am trying to complete the first activity.
Write a PROC CONTENTS step to generate a report of the storm_summary.sas7bdat table.
I checked the answer
proc contents data="FILEPATH/storm_summary.sas7bdat"; run;
This is the code I inputted
PROC CONTENTS DATA="C:\Users\admin\SASUniversityEdition\myfolders\EPG1V2\data\storm_summary.sas7bdat";
run;
And this is what I am getting back in the Log
It looks like you are using SAS University edition. That does not see the Windows drive as it is a Unix based system that only sees the folders set by the virtual machine you are working in.
The path is probably more like '/folders/myfolder/EPG1V2/data/storm_summary.sas7bdat'
AND is case sensitive. So you may need to check your file paths from inside the SAS session.
It looks like you are using SAS University edition. That does not see the Windows drive as it is a Unix based system that only sees the folders set by the virtual machine you are working in.
The path is probably more like '/folders/myfolder/EPG1V2/data/storm_summary.sas7bdat'
AND is case sensitive. So you may need to check your file paths from inside the SAS session.
Thank you ballardw,
That worked perfect now. I will have to remember that going forward.
Now I can continue on my learning experience.
Much appreciated.
Just something I figured out. I'm sure it is in the literature somewhere, but if you right-click on the folder and go to properties, the complete path to that folder is presented in the location field. That helped me reduce my typos, some...
To find the location in the virtual environment which is the SAS session here, we need to select the file in the servers and folders tab and click on the "file properties" icon above.
The location would be something like '/home/u58******/EPG1V2/data/storm_summary.sas7bdat'. Here u58***** is user id given to each individual.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.