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

I am trying to complete the first step to "Lesson 2: Accessing Data" but am getting errors. I don't understand what I am doing wrong.

 

***************************************************************************************************************************

 

Instructions:

Open a new program window and perform the following tasks:

 

 

  • Write a PROC CONTENTS step to generate a report of the storm_summary.sas7bdat table.
    • SAS Studio: Specify the path to your EPG194/data folder and the full name of the table.
    • Enterprise Guide: Specify &path and the full name of the table.
proc contents data="FILEPATH/storm_summary.sas7bdat";
run;

 

My Code:

proc contents data="EPG194/data/storm_summary.sas7bdat";
run;

 

Error Message:

 
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
70
71 proc contents data="EPG194/data/storm_summary.sas7bdat";
ERROR: File EPG194/data/storm_summary.sas7bdat does not exist.
72 run;
 
***************************************************************************************************************************
1 ACCEPTED SOLUTION

Accepted Solutions
ed_sas_member
Meteorite | Level 14

Hi @u45151672 

 

When you right click on the file properties, what physical path is associated with the file?

e.g: "C:/EPG194/data/storm_summary.sas7bdat";

Maybe you have omitted some part of the path before the PEG194 folder?

View solution in original post

6 REPLIES 6
ed_sas_member
Meteorite | Level 14

Hi @u45151672 

 

When you right click on the file properties, what physical path is associated with the file?

e.g: "C:/EPG194/data/storm_summary.sas7bdat";

Maybe you have omitted some part of the path before the PEG194 folder?

u45151672
Calcite | Level 5

/home/u45151672/EPG194/data/storm_summary.sas7bdat.

 

 

That is it!

 

I had tried the following before posting:

proc contents data="home/u45151672/EPG194/data/storm_summary.sas7bdat";
run;

 

But forgot the first /. It needed to be...

proc contents data="/home/u45151672/EPG194/data/storm_summary.sas7bdat";
run;

ed_sas_member
Meteorite | Level 14
Awesome!
Could you please close the thread by marking the topic as answered?
sideline113
Calcite | Level 5

Hello, I am having the same issue, I am not sure what I am doing wrong 

in SAS proc contents data="FILEPATH/storm_summary.sas7bdat"; run

Degema1
Calcite | Level 5
But I tried the same steps with my activity 2.02 but got an error "the file path does not exist"
Degema1
Calcite | Level 5

/home/u58350453/EPG1V2. I tried this code for my activity 2.02 but is not working can any someone help me out?

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 6 replies
  • 1943 views
  • 1 like
  • 4 in conversation