Usage Note 24050: How to create a table of contents with ODS RTF
The example code on the Full Code tab provides the syntax for creating a Table of Contents in the ODS RTF destination with instructions for viewing it when opened in Microsoft Word.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The Table of Contents page is not created until the document is opened in Word. You can create the table of contents by pressing Ctrl A then F9 on the keyboard, or by right-clicking under the Table of Contents title on the first page. A menu suggests several actions. Choose "Update Field".
options number nodate orientation=portrait;
ods rtf path="c:\temp" file="testing678.rtf" contents toc_data bodytitle;
ods proclabel="123 Testing";
proc print data=sashelp.class contents=' ';
title 'TESTING 123';
run;
ods proclabel="456 Testing";
proc print data=sashelp.class contents=' ';
title 'TESTING 456';
run;
ods rtf close;
Type: | Usage Note |
Priority: | low |
Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> RTF
|
Date Modified: | 2004-06-29 14:41:28 |
Date Created: | 2004-06-28 17:13:48 |