The link for a URL might not display as expected in a file that is created by an ODS PDF statement.
When ODS LAYOUT logic is used, instead of being a hyperlink in the expected location, the URL link moves to the bottom of the region.
An example of code that can introduce this issue is shown below:
The Output tab provides PDF files that demonstrate how the link behaves in the region in both the SAS® 9.4M6 (TS1M6) and SAS® 9.4M7 (TS1M7) releases.
When ODS LAYOUT logic is not used, the URL might be displayed as slightly truncated, and the truncation will differ depending upon the zoom level used by Adobe Acrobat Reader.
Click the Hot Fix tab in this note to access the hot fix for this issue.
After the hot fix is applied, the truncation might still show in a PDF file that is created without ODS LAYOUT logic, but it occurs on fewer lines and is not present at higher zoom levels.
The Output tab also provides PDF files that demonstrate how the link behaves in this scenario for both the SAS 9.4M7 release without the hot fix applied and for the SAS 9.4M7 release with the hot fix applied.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | Base SAS | z/OS | 9.4_M7 | 9.4 TS1M7 | ||
z/OS 64-bit | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft® Windows® for x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 8 Enterprise 32-bit | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 8 Enterprise x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 8 Pro 32-bit | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 8 Pro x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 8.1 Enterprise 32-bit | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 8.1 Enterprise x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 8.1 Pro 32-bit | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 8.1 Pro x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows 10 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2008 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2008 R2 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2008 for x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2012 Datacenter | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2012 R2 Datacenter | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2012 R2 Std | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2012 Std | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2016 | 9.4_M7 | 9.4 TS1M7 | ||||
Microsoft Windows Server 2019 | 9.4_M7 | 9.4 TS1M7 | ||||
Windows 7 Enterprise 32 bit | 9.4_M7 | 9.4 TS1M7 | ||||
Windows 7 Enterprise x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Windows 7 Home Premium 32 bit | 9.4_M7 | 9.4 TS1M7 | ||||
Windows 7 Home Premium x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Windows 7 Professional 32 bit | 9.4_M7 | 9.4 TS1M7 | ||||
Windows 7 Professional x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Windows 7 Ultimate 32 bit | 9.4_M7 | 9.4 TS1M7 | ||||
Windows 7 Ultimate x64 | 9.4_M7 | 9.4 TS1M7 | ||||
64-bit Enabled AIX | 9.4_M7 | 9.4 TS1M7 | ||||
64-bit Enabled Solaris | 9.4_M7 | 9.4 TS1M7 | ||||
HP-UX IPF | 9.4_M7 | 9.4 TS1M7 | ||||
Linux for x64 | 9.4_M7 | 9.4 TS1M7 | ||||
Solaris for x64 | 9.4_M7 | 9.4 TS1M7 |
title;
data test;
input x $ y $12. ;
link = catx('', '~S={URL="'||trim(left(y))||'.pdf"', ' linkcolor=white color=blue}', y);
datalines;
abc AAAAAAAAAAA
abc AAAAAAAAAAA
abc AAAAAAAAAAA
abc AAAAAAAAAAA
abc AAAAAAAAAAA
abc AAAAAAAAAAA
abc AAAAAAAAAAA
abc AAAAAAAAAAA
abc AAAAAAAAAAA
;
run;
ods path work.template(update) sashelp.tmplmst;
ods html close;
ods pdf file="&sysvlong..pdf" ;
ods escapechar="~";
proc template;
define table SL ;
dynamic _HEAD;
column x link ;
define header hdr1;
text _HEAD;
spill_margin;
style = ColumnHeader{ color=black};
end;
define column x;
generic;
print_headers = ON;
just = left;
header = "x";
end;
define column link;
generic;
print_headers = ON;
header = "Identifier";
end;
end;
run;
data _NULL_;
set test;
file print ods=(template="SL" dynamic=( _head ="All Patient List" ) columns=( x = x (generic=on) link = link (generic=on) ) );
put _ods_;
run;
ods pdf close;
ods path reset;
Note: The problem might not be displayed if the PDF file or files are opened from inside a browser. In order to see the problem and accurately compare the difference after you apply the hot fix, SAS Technical Support recommends that you open the PDF files with an Adobe Acrobat product. SAS® 9.4M7 output SAS® 9.4M6 output SAS 9.4M7 output: No ODS LAYOUT logic and no hot fix applied SAS 9.4M7 output: No ODS LAYOUT logic but with the hot fix applied
A fix for this issue for Base SAS 9.4_M7 is available at:
https://tshf.sas.com/techsup/download/hotfix/HF2/I9R.html#67736Type: | Problem Note |
Priority: | medium |
Date Modified: | 2021-07-14 15:03:37 |
Date Created: | 2021-04-07 12:41:23 |