O'Reilly logo

PROC TEMPLATE Made Easy by Kevin Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Putting It All Together

Now that you have seen pretty much everything there is to see about proc template styles, let’s put it all together into an example. We’ll start with a simple report that is just using ODS HTML with the default settings.

ODS HTML FILE=’exb.html’ CONTENTS=’exc.html’ FRAME=’exf.html’; PROC SORT DATA = sashelp.shoes OUT = salesdata; BY region subsidiary; WHERE region IN (‘Asia’) AND product IN (‘Boot’, ‘Sandal’, ‘Slipper’); RUN; PROC TABULATE DATA = salesdata F = DOLLAR7.; CLASS region subsidiary product; CLASSLEV region subsidiary product; VAR sales; TABLE subsidiary*product ALL, region*sales*(MIN MEAN MAX); RUN; PROC SORT DATA=sashelp.class OUT = class; BY sex name age; RUN; PROC MEANS DATA=class; BY sex; RUN; ODS HTML ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required