Problem Note 38109: Justification, font, color, and height specifications do not replay to non-Listing ODS destinations when using PROC DOCUMENT
When the SAS/GRAPH® options COLOR=, FONT=, HEIGHT=, or JUSTIFY= are used to change the attributes of all or part of the text in a TITLE or FOOTNOTE statement and PROC DOCUMENT is used to replay the output, the replayed text does not apply the specified options. The TITLE and FOOTNOTE statement text in the HTML, PDF, and RTF output uses the default color, font, height, and justification settings.
If you are running the third maintenance release of SAS 9.2 (TS2M3), the sample code on the Full Code tab provides a workaround using the ACTITLE and ACFOOTN options on the REPLAY statement. Alternatively, a hot fix is also available by request from SAS Technical Support. Once the hot fix is applied, the workaround code is not necessary.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.1 TS1M3 | 9.3 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 | 9.3 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | 9.3 TS1M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 9.1 TS1M3 | 9.3 TS1M0 |
Windows Vista | 9.1 TS1M3 | 9.3 TS1M0 |
64-bit Enabled AIX | 9.1 TS1M3 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 | 9.3 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M3 | 9.3 TS1M0 |
HP-UX IPF | 9.1 TS1M3 | 9.3 TS1M0 |
Linux | 9.1 TS1M3 | 9.3 TS1M0 |
OpenVMS Alpha | 9.1 TS1M3 | 9.3 TS1M0 |
Tru64 UNIX | 9.1 TS1M3 | 9.3 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 JUSTIFY=, COLOR=, HEIGHT=, and FONT= options are not persisted in the ODS PDF output unless the TITLE and FOOTNOTE is restated and the ACTITLE and ACFOOTN (ACTIVETITLE/ACTIVEFOOTNOTE) options are specified on the REPLAY statement for PROC DOCUMENT.
Note: If only TITLE statements use these options, only the TITLE statements need to be restated with ACTITLE in use. If only FOOTNOTE statements use these options, only the FOOTNOTE statements need to be restated with ACFOOTN on the REPLAY statement.
ods escapechar="^";
ods pdf file="original.pdf" notoc;
ods document name=testdoc;
proc freq data=sashelp.class;
tables age;
title j=l "LEFT" j=r "RIGHT";
footnote j=r h=10pt c=green f=courier "Footnote changed to Green, Right, 10PT and Courier font";
run;
ods document close;
ods pdf close;
title;
footnote;
ods pdf file="replayed_broken.pdf" notoc;
proc document name=testdoc;
replay;
run;
quit;
ods pdf close;
/* Workaround: */
/* Restate the TITLE and FOOTNOTE statements and use the */
/* ACTITLE and ACFOOTN option on the REPLAY statement. */
title j=l "LEFT" j=r "RIGHT";
footnote j=r h=10pt c=green f=courier "Footnote changed to Green, Right, 10PT and Courier font";
ods pdf file="replayed_fixed.pdf" notoc;
proc document name=testdoc;
replay / actitle acfootn;
run;
quit;
ods pdf close;
IMPORTANT: Two hot fixes must be installed on your system to fully correct this BASE SAS 9.21_M3 issue.
The link below will direct you to the first required hot fix. See the NOTE: associated with the first hot fix for information on accessing the second required hot fix.
http://ftp.sas.com/techsup/download/hotfix/HF2/B25.html#38109
Justification, font, color, and height specifications do not replay to non-Listing ODS destinations when using PROC DOCUMENT.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2011-03-15 10:27:45 |
Date Created: | 2009-12-11 10:15:51 |