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
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
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;
i think you can use NOTOC option in ods pdf.
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
Thanks for the info....gud options to here...i used till now notoc option only...might use options you mentioned in future.
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 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.