BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi All,

1. I need to create bookmarks in PDF based on by variables in the PROC REPORT while using ODS PDF. But I don't require by variables listed in the pdf output file.So I used NOBYLINE system option.Then I am getting bookmarks as ByGroup1,ByGroup2,...etc (string "BygroupN).
So please let me know if there are any options for removing by variables from the output and also for adding them in the bookmarks.

2. I need to nest the bookmarks in the ods pdf destination. By default it will not nest the 2nd by variable within the 1st by variable ,instead nesting is done to the by only at a single level as a 2-tuple.

Thanks in Advance
Zach
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
You can go a long way toward customizing the TOC with ODS PROCLABEL and the CONTENTS= option that is available for PROC REPORT, PROC PRINT, PROC TABULATE. Especially if you wrap the code in a macro to simulate BY group processing, you can sometimes customize the TOC for every group with a customized CONTENTS=. However, even with CONTENTS=' ', you will see an icon in the bookmark list for your bygroup's output object.

So, if you want MORE control over the TOC used for PDF, HTML and RTF, your next choice is to investigate ODS DOCUMENT/PROC DOCUMENT.

If you review these previous forum postings
http://support.sas.com/forums/thread.jspa?messageID=9982⛾
http://support.sas.com/forums/thread.jspa?messageID=3423ൟ
http://support.sas.com/forums/thread.jspa?messageID=10118➆

you'll see some examples of ODS DOCUMENT which will allow you extensive control over folders/TOC links that get generated for you. Even though one of the examples illustrates the use of ODS DOCUMENT being replayed to ODS RTF, the same program can also work with ODS PDF or ODS HTML. The important thing is to learn about how to use an ODS DOCUMENT store first.

The web site about ODS Document is here:
http://support.sas.com/rnd/base/ods/odsdocument/

cynthia

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
  • 1 reply
  • 1150 views
  • 0 likes
  • 2 in conversation