To produce PROC CONTENTS output for a data set of your choice, change data set
name to MyData.
%let mydata=contents.test;
Create default output. By default, PROC CONTENTS lists the variables alphabetically.
ods output Variables=var1(keep=Num Variable);
ods listing close;
proc contents data=&mydata;
run;
ods listing;
title "Default options";
proc print data=var1 noobs;
run;
Create ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.