- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content