The SAS Output Delivery System and reporting techniques

ODSOUT Data Step Object and PDF Bookmarks

Reply
N/A
Posts: 0

ODSOUT Data Step Object and PDF Bookmarks

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;
SAS Super FREQ
Posts: 8,868

Re: ODSOUT Data Step Object and PDF Bookmarks

Posted in reply to deleted_user
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
SAS Employee
Posts: 16

Re: ODSOUT Data Step Object and PDF Bookmarks

Posted in reply to deleted_user
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
N/A
Posts: 0

Re: ODSOUT Data Step Object and PDF Bookmarks

Posted in reply to deleted_user
I ended up using a gridded layout instead of the 2nd table. That eliminated the unwanted bookmark.

-Randy
Ask a Question
Discussion stats
  • 3 replies
  • 212 views
  • 0 likes
  • 3 in conversation