BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

The code below will generate 2 PDF bookmarks for each observation (1 for each table). Is it possible to suppress the bookmark generated for the 2nd table? If so, how?

Thanks,
Randy

ods listing close;
ods pdf file="C:\TEMP\test.pdf";

data _null_;
set sashelp.class;
if _n_=1 then dcl odsout ods();

ods.table_start(name: name, label: name, overrides: "just=left borderWidth=0");
ods.row_start();
ods.format_cell(text: name);
ods.format_cell(text: put(age,best.));
ods.row_end();
ods.table_end();

ods.table_start(overrides: "just=left");
ods.row_start();
ods.format_cell(text: 'Height');
ods.format_cell(text: 'Weight');
ods.row_end();
ods.row_start();
ods.format_cell(text: put(height,best.));
ods.format_cell(text: put(weight,best.));
ods.row_end();
ods.table_end();
run;
ods listing;
ods pdf close;
3 REPLIES 3
Cynthia_sas
Diamond | Level 26
Hi, Randy:
The use of the "object dot" syntax is experimental. I suspect that the only folks who might be able to find out an answer to this are the ones in Tech Support. I do know that with regular data step and ODS (current) syntax, there is a way to CHANGE the object label.
On the FILE PRINT ODS statement, you use the OBJECTLABEL option:
http://support.sas.com/kb/23/425.html

I'm guessing that, in your syntax, there is some default for LABEL: when you declare the object -- even if you don't give one explicitly, then probably the NAME: is used. There's got to be something to indicate the object in the SAS Results Window. However, short of looking in the information on the topic
http://support.sas.com/rnd/base/datastep/dsobject/#new

or contacting Tech Support, I don't know many folks who are using this yet. I don't know whether the usual SAS tricks will work here:
label: '00'x or label: ' ' -- there's a distinct chance that if you blank out the label the name will be used anyway.

cynthia
DanO_sas_com
SAS Employee
Randy,

At this point there a way to manipulate the bookmarks. However I think your suggestion is a very good one. I will enter a defect to suggest adding an option to the table_start method. A new bookmark will be created every time you do a table_start().

Thanks,
Dan
deleted_user
Not applicable
I ended up using a gridded layout instead of the 2nd table. That eliminated the unwanted bookmark.

-Randy

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Update

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1330 views
  • 0 likes
  • 3 in conversation