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
SAS Super FREQ
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

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
  • 787 views
  • 0 likes
  • 3 in conversation