Understanding HTML Output Parts

Rick Aster

When ODS produces HTML output, it creates four different HTML pages at the same time. Each HTML page is a separate file that contains a separate part of the HTML output. It is helpful to understand these four HTML parts when you are browsing or customizing HTML output from ODS.

The one essential HTML part is the BODY part, which contains the procedure output itself. If you just want to create output that you can scroll through from beginning to end, as you might do with traditional SAS output, or if you plan to import the HTML output into another application, you don’t need to create any of the other HTML parts.

The CONTENTS part is a separate HTML page that serves as a table of contents with links to each step in the output. You could compare it to the Output Manager window. The PAGE part is similar, but it includes a description of each output page in the output. In this HTML context, the output pages are only logical divisions of the output, as all the output appears in the same HTML page.

The FRAME output part is an HTML frame set that puts the other three parts together in one HTML page.

Usually, you create the four HTML parts as separate files in the same directory. The part names are also ODS option names that you can use in the ODS statements to name the files, for example, BODY="body.html" FRAME="frame.html" . . . Use the PATH= option to indicate the directory.