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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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