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
Rhodochrosite | Level 12

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

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2017 views
  • 0 likes
  • 4 in conversation