BookmarkSubscribeRSS Feed
keen_sas
Quartz | Level 8

Hi ,

 

I am using PROC SGPLOT for generating the graphs and after generatign the graph these are converted into WORD and PDF files using a macro. The concern is i am getting SG Plot Procedure as third title in bookmarks in PDF , but not in RTF as shown in the attached  file. I have tried with ODS NOPTITLE /ODS NOPROCTITLE and even ODS PROCLABEL, but still unable to mask The  SGPLOT Procedure Title in PDF. Are ther any other options/methods for masking this "The SGPLOT Procedure" in Bookmark. In the attached graph the graph is generated in 3 pages and each in each page, for bookmark it is displayng the title.

 

Thanks in advance for support/responses.

 

 

 

3 REPLIES 3
WarrenKuhfeld
Ammonite | Level 13

I am not sure I know precisely what you are asking, but bookmarkgen=no suppresses all bookmarks.  See:

BOOKMARKLIST= HIDE | NONE | SHOW

specifies whether to generate and display the list of bookmarks for PDF and PS files.

BOOKMARKGEN | NOBOOKMARKGEN | BOOKMARKGEN=

ods noproctitle;
ods pdf body='b.pdf' bookmarkgen=no;
title 'My Title';
proc sgplot data=sashelp.class;
   reg y=weight x=height;
   run;

proc sgplot data=sashelp.class;
   reg y=weight x=height;
   run;

proc sgplot data=sashelp.class;
   reg y=weight x=height;
   run;
ods pdf close;

 If none of this is helpful, please state more specifically what you want.

DanH_sas
SAS Super FREQ

You can also use the DESCRIPTION option in the SG procedures to change the TOC label:

 

proc sgplot data=sashelp.class description="My Title";
vbar age;
run;

Hope this helps!

Dan

Kastchei
Pyrite | Level 9
Hi Dan,

Sorry to bring this back from the dead. description = 'My title' works if I want a bookmark there at all. I tried desription = '', but it still creates the bookmark just with a null string as the label. Is there a way to stop that bookmark from being created altogether?

Thanks,
Michael

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 3480 views
  • 0 likes
  • 4 in conversation