Problem Note 40168: ODS RTF does not combine tables or graphs when BODYTITLE is in effect and STARTPAGE is set to NO or OFF
The STARTPAGE= option on the ODS RTF statement is used to toggle pagination. A setting of NO or OFF should eliminate the page break between tables and/or graphs on one or more pages of RTF output.
However, if the ORIENTATION system option is set to LANDSCAPE and the BODYTITLE option is used to remove titles and footnotes from the header and footer sections of the RTF file in SAS® 9.2, the STARTPAGE= option setting of NO or OFF will have no effect.
To circumvent the problem, raw RTF code can be used with the SECTIONDATA= option on the ODS RTF statement to toggle the pagination. Please see the example code on the Full Code tab for an illustration.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 9.2 TS1M0 | 9.3 TS1M0 |
Windows Vista | 9.2 TS1M0 | 9.3 TS1M0 |
Windows Vista for x64 | 9.2 TS1M0 | 9.3 TS1M0 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.3 TS1M0 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.3 TS1M0 |
HP-UX IPF | 9.2 TS1M0 | 9.3 TS1M0 |
Linux | 9.2 TS1M0 | 9.3 TS1M0 |
Linux for x64 | 9.2 TS1M0 | 9.3 TS1M0 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.3 TS1M0 |
Solaris for x64 | 9.2 TS1M0 | 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 sample code creates two RTF files. The first section of code illustrates the use of the STARTPAGE= option, which attempts to toggle pagination. The
Solution code illustates the workaround code using the SECTIONDATA= option to toggle pagination.
data test;
input var1 var2 var3;
datalines;
1 2 3
4 5 6
7 8 9
;
run;
/* Problem */
options orientation=landscape;
ods rtf file="problem.rtf" startpage=no bodytitle;
proc print data=test;
var var1;
title 'Var1';
run;
proc print data=test;
var var2 var3;
title 'Var2 and Var3';
run;
ods rtf startpage=yes;
proc print data=test;
var var2 var3;
title 'Var2 and Var3';
run;
ods rtf close;
/* Solution */
options orientation=landscape;
ods rtf file="solution.rtf" sectiondata="\sbknone" bodytitle;
proc print data=test;
var var1;
title 'Var1';
run;
proc print data=test;
var var2 var3;
title 'Var2 and Var3';
run;
ods rtf sectiondata=" ";
proc print data=test;
var var2 var3;
title 'Var2 and Var3';
run;
ods rtf close;
In SAS® 9.2, ODS RTF does not combine tables or graphs when BODYTITLE is in effect and the STARTPAGE= option is set to NO or OFF.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2010-08-17 10:38:58 |
Date Created: | 2010-07-01 09:24:27 |