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

Hello,

 

I have currently been following with Learning SAS by Example book and for some reason when I type in the program

 

title "Listing All the Sas data sets in a library;

proc contents data=sashelp._all_nods;

run;

 

I get an error saying ERROR: File SASHELP._ALL_NODS.DATA does not exist. which obviously isn't true, I have tried it with numerous other libraries but keep getting the same error. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
biopharma
Quartz | Level 8
Correction. NODS is for NODETAILS. So it should be done with a space separating _all_ and nods:
title "Listing All the Sas data sets in a library;
proc contents data=sashelp._all_ noss ;
run;

View solution in original post

5 REPLIES 5
biopharma
Quartz | Level 8

Are you looking to produce the contents of ALL the datasets in the SASHELP library. The "nods" part could be a typo in the book or it could be NOOBS. Try:

title "Listing All the Sas data sets in a library;
proc contents data=sashelp._all_ noobs ;
run;
biopharma
Quartz | Level 8
Correction. NODS is for NODETAILS. So it should be done with a space separating _all_ and nods:
title "Listing All the Sas data sets in a library;
proc contents data=sashelp._all_ noss ;
run;
skatethejake
Fluorite | Level 6

lol ok boomer

Kurt_Bremser
Super User
Your code as posted will throw another ERROR because a closing double quote misses in the TITLE statement.
When posting code here, copy/paste (don't retype!) the text into a window opened with the "little running man" button.
rhafsa
Calcite | Level 5

Hi,

I was also doing the same exercise from the same book. I came across that error as well. The solution to this problem is writing out the option in the proc contents step correctly. 

 

Here is an example with the correct syntax: 

proc contents data=sashelp._all_ nods; 

 

What is the difference, looks the same as you wrote in your program right?

Well, the difference is that there should be a space between the second underscore and the word, nods. 

Like so: 

_all_(space)nods

Where you see (space), a space/blank must be included there. 

And, thats it. 🙂 Hope this helps. 

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!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1562 views
  • 5 likes
  • 4 in conversation