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?

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 4434 views
  • 1 like
  • 4 in conversation