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.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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