Problem Note 38108: Inline style and justification options might not replay with the DOCUMENT procedure when BY groups are used
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), see SAS Note 38109.
To circumvent the problem in the second maintenance release of SAS 9.2 (TS2M2), do one of the following:
- If BY groups are used to create the DOCUMENT item store using ODS DOCUMENT, download and apply the hot fix that is available on the Hot Fix tab, and then use the workaround that is provided on the Full Code tab.
- If BY groups are not used, implement the workaround that is
illustrated on the Full Code tab.
If you are running a SAS 9.2 release prior to the second maintenance release of SAS 9.2 (TS2M2), there is not currently a circumvention for this problem. Information for requesting a SAS maintenance upgrade is located
here.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | 9.2 TS2M3 |
Microsoft Windows XP Professional | 9.2 TS1M0 | 9.2 TS2M3 |
Windows Vista | 9.2 TS1M0 | 9.2 TS2M3 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.2 TS2M3 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.2 TS2M3 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.2 TS2M3 |
HP-UX IPF | 9.2 TS1M0 | 9.2 TS2M3 |
Linux | 9.2 TS1M0 | 9.2 TS2M3 |
Linux for x64 | 9.2 TS1M0 | 9.2 TS2M3 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.2 TS2M3 |
Solaris for x64 | 9.2 TS1M0 | 9.2 TS2M3 |
*
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 values in the JUSTIFY=, COLOR=, HEIGHT= and FONT= options are not persisted in the PDF, RTF, and HTML output unless the TITLE and FOOTNOTE statements are restated and the ACTITLE and ACFOOTN (ACTIVETITLE and ACTIVEFOOTNOTE) options are specified in the REPLAY statement for PROC DOCUMENT.
Note: If only TITLE statements use these options, only the titles need to be restated with the ACTITLE option in use. If only FOOTNOTE statements use these options, only the footnotes need to be restated with ACFOOTN in 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 and use the */
/* ACTITLE and ACFOOTN options 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;
Inline style and justification options do not replay with PROC DOCUMENT when a document item store contains BY groups.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2011-03-07 21:41:24 |
Date Created: | 2009-12-11 09:53:29 |