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 

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!

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