Is there is any way to remove the title "Table of Contents" in the ods pdf reports? Or is there is an option to present the title "Table of Contents" on all the index pages?
I have tried to update the template by " replace text / 'content title' = ";" but it is not working. Currently, the title Table of Contents is presented only on the first page of the report.
Thanks in Advance
Akhil
Hi:
Please post your code and explain what you mean by "index" pages. The way that the Table of Contents works is that it creates a page with the Table of Contents. ODS PDF has a CONTENTS= option, but does not have an INDEX= option, so it is not clear what you mean when you refer to "index" pages. The REPLACE statement was deprecated back in SAS 9.2, so I would not recommend using that syntax anymore. The other thing I don't understand is that if you actually want the TOC title to appear, why is your TEMPLATE code trying to blank it out? This worked for me:
Cynthia
Hi:
Please post your code and explain what you mean by "index" pages. The way that the Table of Contents works is that it creates a page with the Table of Contents. ODS PDF has a CONTENTS= option, but does not have an INDEX= option, so it is not clear what you mean when you refer to "index" pages. The REPLACE statement was deprecated back in SAS 9.2, so I would not recommend using that syntax anymore. The other thing I don't understand is that if you actually want the TOC title to appear, why is your TEMPLATE code trying to blank it out? This worked for me:
Cynthia
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.