Creating PDF Output

You can generate output that is formatted for Adobe Acrobat software. To create PDF output that contains PROC TABULATE and PROC UNIVARIATE output, wrap (sandwich) the ODS PDF statement and ODS PDF CLOSE statement around your program. Use the FILE= option to specify the name and path for your file. Because the HTML destination is open by default, it is good practice to close the HTML destination if you do not want HTML output. This saves system resources.
ods html close;

options nodate nonumber;
proc sort data=sashelp.prdsale out=prdsale;
    by Country;
run;
ods pdf file='your-file-path/PDFPrdsale.pdf';
title 'Actual Product Sales';
title2 '(millions of dollars)';

proc tabulate data=prdsale;   
    class region division prodtype;   
    classlev region division prodtype;   
    var actual;   
    keyword all sum;
    keylabel all='Total';   
    table (region all)*(division all),
         (prodtype all)*(actual*f=dollar10.) /
         misstext=[label='Missing']
         box=[label='Region by Division and Type']; 
run;

ods select ExtremeObs Quantiles Moments;
title "PROC UNIVARIATE Output";
title2;

proc univariate data=prdsale;
    by Country;
    var actual;
run;
ods pdf close;
Default Output Viewed in Adobe Acrobat
Default Output Viewed in Adobe Acrobat