Help using Base SAS procedures

proc contents for hundreds of data sets in one time

Reply
Frequent Contributor
Posts: 128

proc contents for hundreds of data sets in one time

I need to do proc contents for over 500 data sets, each data set has a different name (not a series), how can I do proc contents for each file easily?
Thanks!

Ken
Super Contributor
Posts: 281

Re: proc contents for hundreds of data sets in one time

You want to use the DIRECTORY and DETAILS options of PROC CONTENTS; along with DATA=_ALL_
Frequent Contributor
Posts: 128

Re: proc contents for hundreds of data sets in one time

Thanks for your quick reply.

Can you show me an simple example?
Thanks!
Frequent Contributor
Posts: 128

Re: proc contents for hundreds of data sets in one time

Thanks figured it out!!
Ask a Question
Discussion stats
  • 3 replies
  • 92 views
  • 0 likes
  • 2 in conversation