Usage Note 37937: PUT statements routed to the RTF destination in SAS 9.2 may contain gridlines
If ODS RTF code written in SAS 9.1.3 using PUT statements is run in SAS 9.2, gridlines may appear around the text of the PUT statements. For this to occur, the PUT statements must include in-line formatting. Gridlines did not appear around the output in SAS 9.1.3. The following code replicates this behavior:
ods listing close;
ods escapechar='^';
ods rtf file='test.rtf';
data _null_;
file print;
put '^S={font_weight=bold} This is a test';
run;
ods rtf close;
ods listing;
The RTF destination has been updated in SAS 9.2 to use TAGSETS.RTF. If the ODS RTF statement above is changed to use ODS TAGSETS.RTF instead, the gridlines will not appear.
If the preferred method is to use ODS RTF in SAS 9.2, then the following PROC TEMPLATE code can be added to suppress the gridlines:
proc template;
define style styles.test;
parent=styles.rtf;
style batch from batch /
bordercolor=white;
end;
run;
ods rtf file='test.rtf' style=styles.test;
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
| Microsoft® Windows® for x64 | 9.2 TS1M0 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
| z/OS | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
| Microsoft Windows XP Professional | 9.2 TS1M0 | |
| Windows Vista | 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.
RTF output in SAS 9.2 may contain gridlines around PUT statements. These gridlines did not appear in the output in SAS 9.1.3.
| Type: | Usage Note |
| Priority: | |
| Topic: | SAS Reference ==> ODS (Output Delivery System)
|
| Date Modified: | 2009-11-20 14:58:58 |
| Date Created: | 2009-11-20 13:12:54 |