Problem Note 43959: Multiple tables appear on the same page when you create landscape RTF output and the BODYTITLE option is specified in the ODS RTF statement
Multiple tables appear on the same page when you create landscape RTF output and the BODYTITLE option is specified in the ODS RTF statement. The sample code below replicates the problem:
options orientation=landscape;
ods listing close;
ods rtf file='c:\temp\sastest.rtf' bodytitle;
proc report data=sashelp.class(obs=10) nowd;
run;
proc report data=sashelp.shoes(obs=10) nowd;
run;
ods rtf close;
ods listing;
To circumvent the problem, do one of the following:
- Specify an orientation of portrait before the ODS RTF FILE= statement, and then toggle the output to landscape after the ODS RTF FILE= statement. The sample code below demonstrates this:
ods _all_ close;
options orientation=portrait;
ods rtf file="sastest.rtf" bodytitle;
options orientation=landscape;
ods rtf;
proc report data=sashelp.class(obs=10) nowd;
run;
proc report data=sashelp.shoes(obs=10) nowd;
run;
ods rtf close;
- Replace the ODS RTF statements with ODS TAGSETS.RTF statements. When using the ODS TAGSETS.RTF statement, the BODYTITLE option is set by default and is not needed in the ODS statement.
- Remove the BODYTITLE option from the ODS RTF statement and use ODS RTF TEXT= statements instead of TITLE statements to insert text above and below tables and images.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 R2 | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | 9.4 TS1M1 |
64-bit Enabled AIX | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft Windows XP Professional | 9.3 TS1M0 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Enterprise x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Home Premium x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Professional 32 bit | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Professional x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | |
Z64 | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft® Windows® for x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | |
64-bit Enabled HP-UX | 9.3 TS1M0 | 9.4 TS1M1 |
64-bit Enabled Solaris | 9.3 TS1M0 | 9.4 TS1M1 |
HP-UX IPF | 9.3 TS1M0 | 9.4 TS1M1 |
Linux | 9.3 TS1M0 | 9.4 TS1M1 |
Linux for x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Solaris for x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Windows 7 Ultimate x64 | 9.3 TS1M0 | 9.4 TS1M1 |
Windows Vista | 9.3 TS1M0 | |
Windows Vista for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 | 9.3 TS1M0 | 9.4 TS1M1 |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | |
z/OS | 9.3 TS1M0 | 9.4 TS1M1 |
*
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.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2011-09-15 13:26:53 |
Date Created: | 2011-08-10 11:19:09 |