Generating a Table of Contents

The previous example showed how the results of several procedures could be combined into a single HTML output file. This makes a nice summary report, but it does require the reader to scroll through several pages of output. To make this report even better, you can use ODS to generate a table of contents that allows the reader to click on an item of interest and jump right to that item.

The code involved is quite simple and requires only the addition of two more options to the ODS HTML statement. When you request a single HTML file for your output, you use a BODY= option. To get a table of contents, you add a CONTENTS= option. You should also add a FRAME= option. The CONTENTS= option creates the table of contents, ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.