The SAS Output Delivery System and reporting techniques

ODS, Proc Document and Table of Contents

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

ODS, Proc Document and Table of Contents

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.

odsdoc_wind.jpg

 

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


PDF_TOC.jpg

Accepted Solutions
Solution
‎10-12-2015 04:18 AM
SAS Super FREQ
Posts: 8,820

Re: ODS, Proc Document and Table of Contents

[ Edited ]

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

View solution in original post


All Replies
Solution
‎10-12-2015 04:18 AM
SAS Super FREQ
Posts: 8,820

Re: ODS, Proc Document and Table of Contents

[ Edited ]

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

New Contributor
Posts: 2

Re: ODS, Proc Document and Table of Contents

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

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 378 views
  • 0 likes
  • 2 in conversation