BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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;
3 REPLIES 3
Cynthia_sas
SAS Super FREQ
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
deleted_user
Not applicable
Hi

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

ssas
Cynthia_sas
SAS Super FREQ
Hi:
To accomplish that, I'd recommend using ODS DOCUMENT and the DOCUMENT window.

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 717 views
  • 0 likes
  • 2 in conversation