Problem Note 64253: The traditional ODS RTF destination does not display PRETEXT= and POSTTEXT= style attributes correctly in output
You can use the PRETEXT= or POSTTEXT= style attributes in the REPORT procedure to generate a text string before or after a table so that the text appears as a TITLE or FOOTNOTE statement.
When this technique is used in the ODS RTF destination with the ODS escape character to resolve inline-style functions or commands, the characters display incorrectly as text, as shown here:

The escape-character functions, such as {^SUB} and {^SUPER}, and the command ^n are interpreted incorrectly as a literal text string.
The syntax that creates the incorrect output is as follows:
proc report style(report)=[posttext=" ^n SuperScript test ^{super 2}"];
Workaround
To work around this issue, use the RTF destination-specific backslash as the escape character, as shown here:
proc report style(report)=[posttext=" \n SuperScript test {\super 2}"];
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.2 | | 9.2 TS1M0 | |
z/OS 64-bit | 9.2 | | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 | | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 | | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 | | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 | | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 | | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 | | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 | | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 | | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 | | 9.2 TS1M0 | |
Windows Vista | 9.2 | | 9.2 TS1M0 | |
Windows Vista for x64 | 9.2 | | 9.2 TS1M0 | |
64-bit Enabled AIX | 9.2 | | 9.2 TS1M0 | |
64-bit Enabled HP-UX | 9.2 | | 9.2 TS1M0 | |
64-bit Enabled Solaris | 9.2 | | 9.2 TS1M0 | |
HP-UX IPF | 9.2 | | 9.2 TS1M0 | |
Linux | 9.2 | | 9.2 TS1M0 | |
Linux for x64 | 9.2 | | 9.2 TS1M0 | |
OpenVMS on HP Integrity | 9.2 | | 9.2 TS1M0 | |
Solaris for x64 | 9.2 | | 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.
PRETEXT= and POSTTEXT= to add text above or below a table in the ODS RTF destination using inline-style functions such as superscript and subscript do not display correctly.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2019-06-03 09:50:24 |
Date Created: | 2019-05-28 18:47:46 |