Create RTF output and create a new body file for each page of output. The ODS RTF statement opens the RTF destination and creates RTF output. The CONTENTS option creates a table of contents page that contains a Table of Contents field, which puts all of the contents information that is embedded in the document into a table of contents. However, the table of contents information is not embedded by default into your RTF file. The default is NOTOC_DATA. The embedded TOC data is not shown until you specify the option TOC_DATA.


ods rtf file='Grain.Rtf' contents toc_data;