Problem Note 17498: Blank pages are written between output pages in the ODS RTF destination
When you use the Output Delivery System (ODS) to write to the RTF
destination, it is possible to receive a blank page each time the
ORIENTATION= system option is changed. The problem occurs whether
changing from LANDSCAPE orientation to PORTRAIT or PORTRAIT orientation
to LANDSCAPE. The problem only occurs when the BODYTITLE option is also
specified in an ODS RTF statement.
The following code recreates the problem.
options orientation=portrait;
ods rtf file='test.rtf' bodytitle;
proc print data=sashelp.class;
run;
options orientation=landscape;
proc print data=sashelp.class;
run;
ods rtf close;
The only circumvention is to remove either the BODYTITLE option or the
change of orientation. It is possible to post-process the file and
remove the extra page. The following code illustrates how this can be
done from within SAS:
filename rtf "test.rtf" ;
%macro rem_blkpg(source=xxx);
data temp ;
length line $400;
infile &source length=lg lrecl=1000 end=eof;
input @1 line $varying400. lg;
run;
data _null_;
set temp ;
if (index(line,"\page\par") > 0) then
line = tranwrd(line,"{\page\par}",' ');
file &source;
put line ;
run;
%mend;
%rem_blkpg(source=rtf);
Operating System and Release Information
SAS System | Base SAS | 64-bit Enabled HP-UX | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows XP Professional | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows NT Workstation | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows 2000 Professional | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows 2000 Server | 9.1 TS1M3 | 9.2 TS1M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | 9.2 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M3 | 9.2 TS1M0 |
z/OS | 9.1 TS1M3 | 9.2 TS1M0 |
Linux | 9.1 TS1M3 | 9.2 TS1M0 |
HP-UX IPF | 9.1 TS1M3 | 9.2 TS1M0 |
Linux on Itanium | 9.1 TS1M3 | |
64-bit Enabled AIX | 9.1 TS1M3 | 9.2 TS1M0 |
OpenVMS Alpha | 9.1 TS1M3 | 9.2 TS1M0 |
Tru64 UNIX | 9.1 TS1M3 | 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.
Type: | Problem Note |
Priority: | high |
Topic: | SAS Reference ==> ODS (Output Delivery System)
|
Date Modified: | 2006-05-15 14:22:11 |
Date Created: | 2006-04-20 11:35:43 |