x cd /pub/data/acs2008/Tools; %let pgm=variables_report; filename pgm "&pgm..sas"; /*--Using the uploaded variables dataset generate the Variables.pdf report file. bce already created a Variables.html file so call ours Variables2.html (for now). THIS SETUP DOES NOT WORK SINCE THE VARIABLES DATA SET CREATED BY BCE IS NOT COMPATIBLE WITH WHAT WE EXPECT jgb, 10-1-09. ---*/ libname acs2008 '/pub/data/acs2008'; options nonumber nodate orientation=landscape nocenter; ods printer pdf file="../Variables.pdf" ; ****orient=landscape; ods html file="../Variables2.html" contents="../VariablesContent.html" style=osedablue; ods listing close; proc print data=acs2008.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; format label $char.; title 'Metadata for the acs2008 profiles (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 printer close; ods html close;