*filename lstout '/SAS_temp/eeo90a.lst'; *--first write report here--; filename pdfout '/wwwhome/test/sas2pdf.pdf'; *--and then convert to pdf file here--; proc printto print=lstout new; run; options ls=102 ps=70 pageno=1; data _null_; file print; put "lost"; run; options pageno=1; proc print data=stf903x.moi(Keep=slvl county tract areaname totpop poor where=(slvl='140')); title 'Sample Report in pdf Format'; by county; id tract; run; proc printto; run; *--to close the output print file--; %sas2pdf(in=lstout,out=pdfout,ls=102,ps=70) run;