The SAS Output Delivery System and reporting techniques

PDF ToC with Proc Document

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

PDF ToC with Proc Document

(SAS 9.2 on WIndows)  I am using ODS Document to write out a document (it consists of a bunch of proc reports).  Then, I am using proc document to make new file locations, copy old sections there and give meaningful labels with setlabel.  Here is how it looks in the SAS Documents viewer:

SAS1.jpg

That's exactly what I want.  However, when writing out to PDF later, I get this:

SAS2.jpg

I don't know how to get rid of those "Table 1" bookmarks!  They link to the same page as the bookmark just above.  My hope was that my labels in proc document would overwrite these "Table 1", not add new entries to the TOC.

Thanks!


Accepted Solutions
Solution
‎01-07-2013 10:56 AM
New Contributor
Posts: 3

Re: PDF ToC with Proc Document

Yes - once I used the code example in Problem Note 31278 it worked.  The trick was to use:

proc report data = xyz contents = " ";

Then move the TOC text down to the "break before" statement in proc report.  Kind of roundabout, but it works.

View solution in original post


All Replies
New Contributor
Posts: 3

Re: PDF ToC with Proc Document

Hmm...looks like Problem Note 31278 might apply here.  I might have to revamp the process though.

Solution
‎01-07-2013 10:56 AM
New Contributor
Posts: 3

Re: PDF ToC with Proc Document

Yes - once I used the code example in Problem Note 31278 it worked.  The trick was to use:

proc report data = xyz contents = " ";

Then move the TOC text down to the "break before" statement in proc report.  Kind of roundabout, but it works.

🔒 This topic is solved and locked.

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

Discussion stats
  • 2 replies
  • 221 views
  • 3 likes
  • 1 in conversation