Hi:
You can go a long way toward customizing the TOC with ODS PROCLABEL and the CONTENTS= option that is available for PROC REPORT, PROC PRINT, PROC TABULATE. Especially if you wrap the code in a macro to simulate BY group processing, you can sometimes customize the TOC for every group with a customized CONTENTS=. However, even with CONTENTS=' ', you will see an icon in the bookmark list for your bygroup's output object.
So, if you want MORE control over the TOC used for PDF, HTML and RTF, your next choice is to investigate ODS DOCUMENT/PROC DOCUMENT.
If you review these previous forum postings
http://support.sas.com/forums/thread.jspa?messageID=9982⛾
http://support.sas.com/forums/thread.jspa?messageID=3423ൟ
http://support.sas.com/forums/thread.jspa?messageID=10118➆
you'll see some examples of ODS DOCUMENT which will allow you extensive control over folders/TOC links that get generated for you. Even though one of the examples illustrates the use of ODS DOCUMENT being replayed to ODS RTF, the same program can also work with ODS PDF or ODS HTML. The important thing is to learn about how to use an ODS DOCUMENT store first.
The web site about ODS Document is here:
http://support.sas.com/rnd/base/ods/odsdocument/
cynthia