Usage Note 57982: ODS RTF generates duplicate titles and footnotes if multiple text justifications are used in TITLE or FOOTNOTE statements with the Journal style
Duplicate titles and footnotes are generated in the ODS RTF destination if multiple text justifications are used in TITLE or FOOTNOTE statements with the Journal style. The multiple justifications in a TITLE or FOOTNOTE statement cause
duplicate titles or footnotes to appear.
To retain the justification and avoid the issue, you can create a new style from the Journal style and modify the CELLPADDING attribute of the SysTitleAndFooterContainer style element.
The problematic behavior can be replicated using the sample code below.
title1 j=left 'FIRST TITLE' j=right "Page ~{pageof}";
title2 j=left "SECOND TITLE";
footnote1 j=left 'FIRST FOOTNOTE' j=right "Version Produced: &sysvlong";
footnote2 j=right "SECOND FOOTNOTE";
ods escapechar='~';
options nonumber nodate orientation=landscape center;
ods _all_ close;
ods rtf file="example.rtf" style=styles.Journal;
proc report data=sashelp.class nowindows split='^';
run;
ods rtf close;
Click the Output tab to see the incorrect results.
The sample code below illustrates the circumvention.
/* As a workaround, copy this code to compile RTFJournal in the Work library. */
/* Follow with your procedure code or the code above. */
ods path (prepend)work.templat(update);
proc template;
define style styles.RtfJournal;
parent=styles.Journal;
style SysTitleAndFooterContainer from SysTitleAndFooterContainer / cellpadding=0;
end;
run;
/* To reset the search path for templates, submit ODS PATH RESET; */
Operating System and Release Information
SAS System | Base SAS | 64-bit Enabled Solaris | 9.4 TS1M3 | |
64-bit Enabled AIX | 9.4 TS1M3 | |
Windows 7 Ultimate x64 | 9.4 TS1M3 | |
Windows 7 Ultimate 32 bit | 9.4 TS1M3 | |
Windows 7 Professional x64 | 9.4 TS1M3 | |
Windows 7 Professional 32 bit | 9.4 TS1M3 | |
Windows 7 Home Premium x64 | 9.4 TS1M3 | |
Windows 7 Home Premium 32 bit | 9.4 TS1M3 | |
Windows 7 Enterprise x64 | 9.4 TS1M3 | |
Windows 7 Enterprise 32 bit | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Std | 9.4 TS1M3 | |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M3 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M3 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M3 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M3 | |
Microsoft Windows Server 2008 | 9.4 TS1M3 | |
Microsoft Windows 10 | 9.4 TS1M3 | |
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M3 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M3 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8 Pro x64 | 9.4 TS1M3 | |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M3 | |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M3 | |
Microsoft® Windows® for x64 | 9.4 TS1M3 | |
z/OS 64-bit | 9.4 TS1M3 | |
z/OS | 9.4 TS1M3 | |
HP-UX IPF | 9.4 TS1M3 | |
Linux for x64 | 9.4 TS1M3 | |
Solaris for x64 | 9.4 TS1M3 | |
*
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 problematic behavior can be seen in this output.

The multiple justifications in a TITLE or FOOTNOTE statement cause duplicate titles and footnotes to appear in RTF files if they are generated using the Journal style. To correct this, the CELLPADDING attribute for the SysTitleAndFooterContainer style element can be modified.
Type: | Usage Note |
Priority: | medium |
Date Modified: | 2016-04-06 10:37:12 |
Date Created: | 2016-04-01 18:32:30 |