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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2106 views
  • 0 likes
  • 3 in conversation