Proc Contents

SAS day 51:  Proc Contents

Background story:

One day, we need to search for a particular variable from 90 datasets. It would be a mission possible without Yajnes’s trick of Proc Contents.

Free-Photos / Pixabay


proc contents data=adam._all_;

Note: the _all_ option would print out the contents of all the datasets.

Then we can use the search option to locate the exact dataset.

Thanks, Yajnes so much for willing to share this little trick with me!

Happy SAS Coding!


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social media & sharing icons powered by UltimatelySocial
%d bloggers like this: