The ODS HTML statement opens the HTML destination and creates HTML output. The output from PROC PRINT goes to the body file. FRAME= and CONTENTS= create a frame that includes a table of contents that links to the contents of the body file. The body file also appears in the frame.

The STYLE= option tells ODS to use styles.default as the style definition when it formats the output. Strictly speaking, this option is unnecessary because it specifies the default style definition, but it is included for clarity.


ods html body='sasdefaultstyle-body.htm'
         contents='sasdefaultstyle-content.htm'
         frame='sasdefaultstyle-frame.htm'
         style=styles.default;