BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Simon
Calcite | Level 5

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
1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

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

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

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

Simon
Calcite | Level 5

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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1833 views
  • 1 like
  • 2 in conversation