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.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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