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.
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;
lol ok boomer
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 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.