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

I am currently on lesson 2 of the Programming 1 course and it asks me to generate a report of a table using proc contents, I wrote the code: 

proc contents data="/odaws01-usw2/Files(Home)/EPG1V2/data/storm_summary.sas7bdat";
run;

Specifying the file path I can see but I keep receiving an error message that the path doesn't exist - see attached image for log. What am I doing wrong here?  

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi,
It's just that your path is wrong. You don't use the server name and Files (Home), just something more like this:
/home/u12345678/EPG1V2/data/storm_summary.sas7bdat
OR
~/EPG1V2/data/storm_summary.sas7bdat
where instead of "u12345678", you use your own user ID or else you use the tilde (~) without a leading slash to indicate your Files (Home) folder. If you right click on Files (Home) and choose Properties, you'll see the correct userID that you need to use in your DATA= option for this activity. Using the tilde (~) is probably easier, but it's not a bad idea to know what your unique userID is on the SAS OnDemand platform.
Cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi,
It's just that your path is wrong. You don't use the server name and Files (Home), just something more like this:
/home/u12345678/EPG1V2/data/storm_summary.sas7bdat
OR
~/EPG1V2/data/storm_summary.sas7bdat
where instead of "u12345678", you use your own user ID or else you use the tilde (~) without a leading slash to indicate your Files (Home) folder. If you right click on Files (Home) and choose Properties, you'll see the correct userID that you need to use in your DATA= option for this activity. Using the tilde (~) is probably easier, but it's not a bad idea to know what your unique userID is on the SAS OnDemand platform.
Cynthia

OliviaOk
Calcite | Level 5
Thank you for the help.

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!

LIBNAME 101

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.

Discussion stats
  • 2 replies
  • 291 views
  • 4 likes
  • 2 in conversation