The SAS Output Delivery System and reporting techniques

get rid of child bookmark from PDF file

Reply
N/A
Posts: 0

get rid of child bookmark from PDF file

Dears

Could any of you give me a hint as how to get rid of PDF file child bookmark as "DATA SET SASHELP.CLASS" which can be seen from the pdf file printed by codes below. I have tried hard and referenced quite lot of ODS PDF related user guide, it seems to be no good way to do so. Many thanks in advance.



ODS LISTING CLOSE;
ODS PDF FILE = "c:\temp\class.pdf" BOOKMARKLIST = HIDE;
ODS PROCLABEL "This bookmark I need";

Proc print data=sashelp.class;

run;

ODS _ALL_ CLOSE;
SAS Super FREQ
Posts: 8,744

Re: get rid of child bookmark from PDF file

Hi:
Try using the CONTENTS= option on the PROC PRINT statement:
[pre]
ODS LISTING CLOSE;
ODS PDF FILE = "c:\temp\class.pdf"
BOOKMARKLIST = HIDE;
ODS PROCLABEL "Proc Print Node";

Proc print data=sashelp.class
contents="This bookmark I need";
run;

ODS _ALL_ CLOSE;
[/pre]

Which does not get rid of the 2nd node, but does effectively allow you to give it the bookmark text you want.
The use of CONTENTS=' ' (quote blank quote) will get rid of any text, but not the node itself.

ODS DOCUMENT and PROC DOCUMENT also give you a way to rearrange and replay your ODS output objects so that the TOC/bookmark area has any structure you want.

Or, you could check Tech Support for the Template FAQ to investigate changing the style template, which in some instances gives you a certain amount of control over the Table of Contents/Bookmark text.

cynthia
N/A
Posts: 0

Re: get rid of child bookmark from PDF file

Hi

Many thanks for your suggestions though my ultimate goal is to simply get rid of the 2nd node.

ssas
SAS Super FREQ
Posts: 8,744

Re: get rid of child bookmark from PDF file

Hi:
To accomplish that, I'd recommend using ODS DOCUMENT and the DOCUMENT window.

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