x cd /pub/data/dhc2020x/Tools; %let pgm=cnvt_dhc2020x; filename pgm "&pgm..sas"; /* Rebuild the Variables.pdf and Variables.html files from the variables.sas7bdat dataset. */ %include '/pub/sas/autoexec.sas'; options nonotes source nosource2 nomprint nosymbolgen nomlogic compress=binary spool; libname dhc2020x '/pub/data/dhc2020x'; libname dhcx (dhc2020x); options nonumber nodate orientation=landscape nocenter; ods pdf file="../Variables.pdf" style=plateau; ods html file='../Variables.html' style=plateau; * THIS WILL OVERWRITE EXISTING variables.html FILE WITH ANY SUBSEQUENT EDITS! ; ods listing close; proc print data=dhcx.Variables label; where pctflag=0 or UnivVar=' '; * do not show the Pct variables unless they are stand-alone ; by table notsorted universe notsorted; id name; var label--comment UnivVar WtVar lvl; format label $char.; title 'Metadata for the dhc2020x filetype (partial listing of variables dataset)'; footnote 'Note: Universe variable is denominator used to create corresponding pct variable'; title2 "Revised as of &sysdate &systime"; run; ods pdf close; ods html close;