BookmarkSubscribeRSS Feed
lbarwick
Quartz | Level 8

I am using ODS PDF and LAYOUT to print multiple tables on the same page of output using proc report. I have tried searching for this but does anyone know if it's possible to retain the first-level PDF bookmark node for my first proc report, but then suppress a bookmark from being generated for subsequent proc reports? Currently a bookmark is being generated for every single proc report even though the tables are output to the same page. I am using 9.4 MM4.

6 REPLIES 6
Cynthia_sas
Diamond | Level 26
Hi:
Look at ODS PROCLABEL and at the CONTENTS= option for PROC REPORT. Those are the 2 primary ways to control the nodes in the TOC.
Cynthia
lbarwick
Quartz | Level 8

Before the first proc report I have specified my desired bookmark title via ods proclabel. Within the first proc report I have specified contents="" to suppress secondary-level nodes. For subsequent proc reports, prior to proc I have specified ods proclabel="" to try and suppress the first-level node, and within the proc report again specify contents="" to suppress secondary level nodes but I am still getting The Report Procedure as the primary node.

Cynthia_sas
Diamond | Level 26

Hi:

  Try ODS PROCLABEL with " " (quote-space-quote) -- I believe that if you do just "" (quote-quote) with no space, that you get the default title of "The Report Procedure".

 

  You may then find that you get an extra "Table 1" node in the TOC to get rid of that, see this Tech Support note: http://support.sas.com/kb/31/278.html

 

Cynthia

lbarwick
Quartz | Level 8

Thanks Cynthia - I was able to use the break statement to remove the third level node, and did as you suggested with the proclabel=" ". The label is no longer appearing, but the first node for the subsequent proc reports still shows up, just blank (due to " "):

 

Capture.PNG

Any thoughts?

Cynthia_sas
Diamond | Level 26
Hi:
I think you are only removing the label with ods proclabel, not suppressing the bookmark.

The only way I know to truly control the TOC the way you want is to write all the objects out to a document store and use ODS DOCUMENT/PROC DOCUMENT to restructure the TOC and make the folder structure you want. Then replay the new document to PDF. It is going to be a learning curve. The basics are outlined in this paper -- which shows the restructuring using ODS DOCUMENT/PROC DOCUMENT: https://support.sas.com/resources/papers/sgf09/318-2009.pdf

Compare the TOC in Figure 3 with the rearranged and replayed TOC in Figure 21.

Cynthia
lbarwick
Quartz | Level 8

Yea I thought that'd be your answer after doing a lot of research, was just hoping there was an easier way. I've fooled around with the document store and couldn't quite get it to work right. I am using ODS LAYOUT to a PDF destination and when I tried the document store, the output was very jumbled compared to straight output to PDF. I'll explore some more. Thanks Cynthia.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 6 replies
  • 2607 views
  • 0 likes
  • 2 in conversation