Hi All,
I've been having a play around with using ODS document / proc document etc. to produce some outputs with usable TOC's.
I've had a read of a good few papers and a bunch of stuff from all over the internet and I've managed to get stuff looking how I want it to in the odsdocument window, listing the various section and subsection headings etc.
The issue seems to be when I output to rtf / pdf generating a toc I end up with and additional line in the TOC for each table which just states 'Table 1'. Looking at the rtf output I can see that this is coming from the rtf control characters embedded in the output as {tc "Table 1 " \f C \1 3}. I'm at a loss (given my limited knowledge) as to where this is coming from.
I'd be really grateful if anyone could suggest how to get around this.
Many thanks,
Simon
Hi:
Are you using PROC REPORT? There is usually an "extra" Table 1 node that you see in PROC REPORT output. There is a Tech Support note http://support.sas.com/kb/31/278.html about how to get rid of it. And a previous Forum posting about the same issue is here:
https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-bookmarks/td-p/74714 (with some code posted).
cynthia
Hi:
Are you using PROC REPORT? There is usually an "extra" Table 1 node that you see in PROC REPORT output. There is a Tech Support note http://support.sas.com/kb/31/278.html about how to get rid of it. And a previous Forum posting about the same issue is here:
https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-bookmarks/td-p/74714 (with some code posted).
cynthia
Hi Cynthia,
Thank you so much for your response.
Yes, I am using PROC REPORT. I'd been using the contents = but I'd messed up my break statement, having played around with the ordering variables I had been using.
All seems to be working well now.
Thanks,
Simon
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.