Graphics Programming

Data visualization using SAS programming, including ODS Graphics and SAS/GRAPH. Charts, plots, maps, and more!
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
P5C768
Obsidian | Level 7

Hello, I am trying to move two tables created by a PROC TABULATE statement onto one page of a PDF.  I was able to do so using startpage = never and ods pdf startpage=now to control the page placement, however it doesn't remove the PDF bookmark for the table I move onto the first page.  The best I can do is set it to be a blank label using ods proclabel ' '.  Is there a way to completely remove this bookmark?  I've tried using PROC DOCUMENT as well but can't seem to get it to work.  Thanks!_pd

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Yes, you are correct. NOTOC was the -first- bookmark control. BOOKMARKGEN, in conjunction with BOOKMARKLIST was introduced later (9.0 or 9.1?) to give you a bit more control than plain NOTOC. For example, you can set BOOKMARKGEN=YES but then choose to hide the bookmark area with BOOKMARKLIST=HIDE. So on the initial open of the PDF file, the viewer will not see the bookmark area, but they can click the bookmark icon to reveal the TOC.

cynthia

View solution in original post

5 REPLIES 5
Cynthia_sas
SAS Super FREQ

Hi:  A simple way to completely remove the bookmarks is to use NOTOC or BOOKMARKGEN=NO as options. Would that work for you?

Cynthia

ods listing close;

ods pdf file="C:\Temp\nobookmark.pdf" startpage=no bookmarkgen=no;

. . . your code. . .

ods pdf close;

Vish33
Lapis Lazuli | Level 10

i think you can use NOTOC option in ods pdf.

Cynthia_sas
SAS Super FREQ

Yes, you are correct. NOTOC was the -first- bookmark control. BOOKMARKGEN, in conjunction with BOOKMARKLIST was introduced later (9.0 or 9.1?) to give you a bit more control than plain NOTOC. For example, you can set BOOKMARKGEN=YES but then choose to hide the bookmark area with BOOKMARKLIST=HIDE. So on the initial open of the PDF file, the viewer will not see the bookmark area, but they can click the bookmark icon to reveal the TOC.

cynthia

Vish33
Lapis Lazuli | Level 10

Thanks for the info....gud options to here...i used till now notoc option only...might use options you mentioned in future.

P5C768
Obsidian | Level 7

BOOKMARKGEN worked perfectly, I want to keep the bookmarks, just suppress the blank ones created by moving the PROC TABULATE output.  I put a BOOKMARKGEN = NO before the PROC TABULATE statement that I move, then a BOOKMARKGEN = YES after it restart the bookmark generation.  Thanks!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 5 replies
  • 6380 views
  • 3 likes
  • 3 in conversation