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: Call for Content

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 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1892 views
  • 1 like
  • 4 in conversation