Problem Note 49020: Links to anchored PDF tables from a file generated with ODS PDF always go to the first table
If the ODS PDF ANCHOR= statement is used to generate an anchor to a table in a PDF file that is generated with ODS, and a link is created in another PDF file to that table, the link shows in the first PDF file, but does not link to the correct anchored table. It instead always links to the first table (page) in the destination PDF file.
The sample code on the Full Code tab illustrates the problem.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Windows Vista for x64 | 9.2 TS1M0 | |
64-bit Enabled AIX | 9.2 TS1M0 | |
64-bit Enabled HP-UX | 9.2 TS1M0 | |
64-bit Enabled Solaris | 9.2 TS1M0 | |
HP-UX IPF | 9.2 TS1M0 | |
Linux | 9.2 TS1M0 | |
Linux for x64 | 9.2 TS1M0 | |
OpenVMS on HP Integrity | 9.2 TS1M0 | |
Solaris for x64 | 9.2 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.
The sample code below generates two PDF files and illustrates the problem. The NationalNN.pdf file should link to pages for WEST and EAST in the RegionalNN.pdf file. In SAS® 9.2 and SAS 9.3, clicking on WEST and EAST in the Region column of the NationalNN.pdf file incorrectly links to the first page (the table for WEST in RegionalNN.pdf).
%let path=%str(c:\temp);
ods _all_ close;
options orientation=portrait papersize=letter nodate nonumber;
/* Regional Report */
ods pdf file="&path.\National&sysver..pdf" notoc;
title1 'Region Summary';
footnote1;
proc report data=sashelp.prdsale (where=(prodtype='OFFICE')) nowd;
column region product,actual;
define region / group;
define product / across;
define actual / analysis sum format=dollar8. 'Sales';
compute region;
rtag = "Regional&sysver..pdf"||"#"||trim(lowcase(region));
call define(_col_,'url',rtag);
endcomp;
rbreak after / summarize;
run;
ods pdf close;
ods pdf file="&path.\Regional&sysver..pdf" notoc;
/* Western Region Report */
ods pdf anchor="west";
title1 'Western Region Summary';
proc report data=sashelp.prdsale (where=(prodtype='OFFICE' and region='WEST')) nowd;
column region country product, actual;
define region / group style(header)={url="National&sysver..pdf"};
define country / group;
define product / across;
define actual / analysis sum format=dollar8. 'Sales';
rbreak after / summarize;
run;
/* Eastern Region Report */
title1 'Eastern Region Summary';
ods pdf anchor="east";
proc report data=sashelp.prdsale (where=(prodtype='OFFICE' and region='EAST')) nowd;
column region country product,actual;
define region / group style(header)={url="National&sysver..pdf"};
define country / group;
define product / across;
define actual / analysis sum format=dollar8. 'Sales';
rbreak after / summarize;
run;
ods pdf close;
Links to anchored PDF tables from a file generated with ODS PDF always go to the first table.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2013-04-05 09:13:09 |
Date Created: | 2013-01-29 13:59:18 |