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

Using Pre-Defined Styles

It may come as a surprise to you that SAS comes with over 50 style definitions that are ready to use. The only thing that you have to do to apply one to your ODS reports is to use the style= option. An example of using a pre-defined style with ODS HTML output is shown below.

ODS HTML STYLE = styles.seaside;

PROC PRINT DATA = sashelp.class(OBS = 8);
RUN;

ODS HTML CLOSE;

image shown here

Here is another example using a style with PDF output.

ODS PDF STYLE = styles.journal;

PROC PRINT DATA = sashelp.class(OBS = 8);
RUN;

ODS PDF CLOSE;

Where Are These Styles Coming from?

You might be wondering where the styles styles.seaside and styles.journal ...

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