Data visualization with SAS programming

Masking of SGPLOT title/Label in PDF Bookmarks

Reply
Contributor
Posts: 30

Masking of SGPLOT title/Label in PDF Bookmarks

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.

 

 

 

SAS Super FREQ
Posts: 196

Re: Masking of SGPLOT title/Label in PDF Bookmarks

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.

SAS Super FREQ
Posts: 925

Re: Masking of SGPLOT title/Label in PDF Bookmarks

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

Ask a Question
Discussion stats
  • 2 replies
  • 90 views
  • 0 likes
  • 3 in conversation