Problem Note 5089: Recursive node generated in PDF table of contents when DESCRIPTION= or
CONTENTS= options set to null
Some base SAS procedures such as REPORT, PRINT, and TABULATE allow use
of the CONTENTS option (CONTENTS='') to prevent creation of nodes in the
HTML and PDF table of contents. The CONTENTS option is specified on
either the PROC statement or a subordinate statement depending on the
procedure involved. Some SAS/GRAPH procedures allow the same thing to be
accomplished by setting the option DESCRIPTION= (or DES=) to null('').
Use of either CONTENTS= or DESCRIPTION= with a null value may result in
a recursive node in the table of contents when creating PDF files with
ODS PRINTER PDF and/or ODS PDF.
The following code replicates the problem, and the resulting table of
contents in the .PDF file shows the text 'My Proc' with a plus sign
to the left (implying a node underneath it). When 'My Proc' is clicked
on, the node 'My Proc' shows up underneath, and this behavior is
repeated again and again. The .PDF file itself is fine, there are no
additional pages created. Only the table of contents (TOC) is affected.
The .PDF file created with the following code demonstrates the problem.
ods pdf file='file.pdf';
ods proclabel='My Proc';
proc gplot data=sashelp.class;
plot sex*age / des='';
run;
quit;
ods pdf close;
These statements should produce only one bookmark, 'My Proc'. Instead,
the same bookmark will be nested repeatedly beneath itself:
-My Proc
-My Proc
+My Proc
This problem may occur when the PDF file is viewed using Acrobat 4 or 5;
it does not occur with Acrobat 3.
To circumvent the problem, use the ODS PS destination with the PDFMARK
option to create a postscript file which Adobe Distiller will distill
into PDF with a TOC or do not blank out the subheading bookmarks.
A Technical Support hot fix for Release 8.2 (TS2M0) for this
issue is available at:
http://www.sas.com/techsup/download/hotfix/82_sbcs_prod_list.html#005089
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | Base SAS | Microsoft Windows NT Workstation | 8.1 TS1M0 | 9 |
| Microsoft Windows 2000 Datacenter Server | 8.1 TS1M0 | 9 |
| Microsoft Windows 2000 Professional | 8.1 TS1M0 | 9 |
| Microsoft Windows 2000 Server | 8.1 TS1M0 | 9 |
| Microsoft Windows 2000 Advanced Server | 8.1 TS1M0 | 9 |
| 64-bit Enabled Solaris | 8.1 TS1M0 | |
| Solaris | 8.1 TS1M0 | |
| OpenVMS VAX | 8.1 TS1M0 | |
| IRIX | 8.1 TS1M0 | |
| OS/2 | 8.1 TS1M0 | |
| ABI+ for Intel Architecture | 8.1 TS1M0 | |
| z/OS | 8.1 TS1M0 | 9 |
| 64-bit Enabled HP-UX | 8.1 TS1M0 | |
| HP-UX | 8.1 TS1M0 | |
| CMS | 8.1 TS1M0 | |
| OpenVMS Alpha | 8.1 TS1M0 | 9 |
| 64-bit Enabled AIX | 8.1 TS1M0 | |
| Microsoft Windows 95/98 | 8.1 TS1M0 | |
| Tru64 UNIX | 8.1 TS1M0 | 9 |
| AIX | 8.1 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | medium |
| Topic: | SAS Reference ==> ODS (Output Delivery System)
|
| Date Modified: | 2004-08-03 09:01:31 |
| Date Created: | 2001-05-25 13:58:30 |