BookmarkSubscribeRSS Feed
singhbrothers1
Calcite | Level 5

I'm trying to remove the second level of bookmark from the PDF output that i create using ODS PDF. I am able to collapse it using pdftoc=1 in the ODS PDF statement. But how can I completely remove this second level of bookmark. See attachment where it says "The SGRender Procedure"  (Please note i do need the first level bookmark so cannot use NOBOOKMARKGEN option it turns it off completely.) 

 

%let ods_pdf_out = <Name and Location of the PDF file>;
ods pdf file = "&ods_pdf_out." style=mystyle pdftoc=1;
ODS PROCLABEL "Figure 14.3.5.1.1 : Box and Whisker Plot Over Time of Systolic Blood Pressure (mmHg): Observed Values";

SAS.jpg

 

Any help would be great. 

 

3 REPLIES 3
PGStats
Opal | Level 21

Have you tried to play with the OBJECTLABEL option of SGRENDER? Where does the label end up in the TOC?

PG
singhbrothers1
Calcite | Level 5

Output of Proc SGrender is just one of the outputs. My outputs use various procedure e.g. Proc Report, Proc SGRender, Proc LIfe test.  Is there a general way to removing the bookmarks or managing them as a post process, from PDF files?

Cynthia_sas
SAS Super FREQ
Hi: The "general" way is to use ODS PROCLABEL and/or the CONTENTS= option for procedures like PRINT, REPORT and TABULATE that have the CONTENTS= option. For other procedure output, the more general way to control the TOC is to use ODS DOCUMENT and PROC DOCUMENT, as shown in these papers:
https://support.sas.com/resources/papers/sgf09/318-2009.pdf
and
http://support.sas.com/rnd/base/ods/scratch/document-tips.pdf
and
https://support.sas.com/resources/papers/proceedings12/273-2012.pdf
and
https://blogs.sas.com/content/sastraining/2012/11/19/ods-at-your-fingertips-with-proc-document/

Cynthia

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 3 replies
  • 2304 views
  • 0 likes
  • 3 in conversation