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

(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!

1 ACCEPTED SOLUTION

Accepted Solutions
BriGuy
Calcite | Level 5

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

2 REPLIES 2
BriGuy
Calcite | Level 5

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

BriGuy
Calcite | Level 5

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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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