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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 817 views
  • 1 like
  • 2 in conversation