Features: |
CONTENTS Statement |
title1 "PROC CONTENTS ODS Output"; options nodate nonumber nocenter formdlim='-'; data a; x=1; run;
ods output attributes=atr variables=var enginehost=eng;
ods listing close; proc contents data=a; run;
ods listing; title2 "all Attributes data"; proc print data=atr noobs; run; title2 "all Variables data"; proc print data=var noobs; run; title2 "all EngineHost data"; proc print data=eng noobs; run;
ods output attributes=atr1(keep=member cvalue1 label1 where=(attribute in ('Data Representation','Encoding')) rename=(label1=attribute cvalue1=value)) attributes=atr2(keep=member cvalue2 label2 where=(attribute in ('Observations', 'Variables')) rename=(label2=attribute cvalue2=value)); ods listing close; proc contents data=a; run; ods listing; data final; set atr1 atr2; run; title2 "example of post-processing of ODS output data"; proc print data=final noobs; run; ods listing close;
ods listing; title2 "all Attributes data"; proc print data=atr noobs; run; title2 "all Variables data"; proc print data=var noobs; run; title2 "all EngineHost data"; proc print data=eng noobs; run;
ods output attributes=atr1(keep=member cvalue1 label1 where=(attribute in ('Data Representation','Encoding')) rename=(label1=attribute cvalue1=value)) attributes=atr2(keep=member cvalue2 label2 where=(attribute in ('Observations', 'Variables')) rename=(label2=attribute cvalue2=value)); ods listing close; proc contents data=a; run; ods listing; data final; set atr1 atr2; run; title2 "example of post-processing of ODS output data"; proc print data=final noobs; run; ods listing close;