BookmarkSubscribeRSS Feed
NR13
Fluorite | Level 6

Hi - I have a client that requires a 2 part table of contents, something like this:

Table of contents

Header1...............................................................1

Header2...............................................................3

 

Tables

Header1 Table1...................................................1

Header1 Table2...................................................2

Header2 Table1...................................................3

 

Is this possible? The code is currently set up with ods rtf text=titles to display the titles that need to be displayed in the report, as well as the TOC. I'm using proc report to display the actual tables. For confidentiality reasons, I can't post the code. I have tried the 'contents' option, but that sorts it in a regular format - i.e.:

 

Table of contents

Header1...............................................................1

     Header1 Table1..............................................1

     Header1 Table2..............................................2

Header2...............................................................3

    Header2 Table1...............................................3

 

Unfortunately, they will not accept that format. TIA for the help!

1 REPLY 1
ballardw
Super User

Have you tried creating two separate RTF documents each with a table of contents and then combining them using your word processing program?

 

I suspect there will be a limitation based on the word processing program and you may be stuck with using word processor tools to build the appropriated TOC's such as https://answers.microsoft.com/en-us/msoffice/forum/all/table-of-contents-2-table-of-contents-in-one/...

 

Search Google for "Multiple tables of content in Word" to get multiple pages.

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 337 views
  • 0 likes
  • 2 in conversation