BookmarkSubscribeRSS Feed
sanyam13
Fluorite | Level 6

Proc contensts data = sasuser . _all_ nods;

run;

 

I am unable to understand output for this , is this printing list of data sets names in sasuser library only or list of data sets in sasuser library plus the descriptor portion of every data set in sasuser library .  I am unable to understand when proc contents prints list of data sets only and when list of data sets + descriptor portion of every data sets 

2 REPLIES 2
Kurt_Bremser
Super User

Your code as posted throws a syntax error.

Run this instead:

proc contents data=sasuser._all_ nods;
run;

The documentation for proc contents is the same as for the contents statement in proc datasets, so see here: http://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.3&docsetId=proc&docsetTarget=p1v2467v...

Especially note the paragraph for the nods option. Play around with it, to see how the different options influence the outcome.

sanyam13
Fluorite | Level 6

Thank you sir , it helped a lot 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 1283 views
  • 1 like
  • 2 in conversation