Usage Note 33986: Create an RTF or PDF file with SAS/GRAPH® software and include "PAGE X of Y" information in the TITLE or FOOTNOTE
Titles and footnotes are by default embedded in the images that are created by SAS/GRAPH procedures. When inline style commands are used to change the style of titles or footnotes or to add PAGEOF information in the PDF or RTF destinations, the commands are written as text to the respective titles and footnotes. In order to remove the text from the SAS/GRAPH images, the ODS HTML, PDF, and RTF destinations have the following options available:
NOGTITLE
NOGFOOTNOTE
In the ODS RTF destination, the NOGTITLE option places the titles in the HEADER section of an RTF file. The NOGFOOTNOTE option places footnotes in the FOOTER section of an RTF file.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9 TS M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
Microsoft Windows 2000 Server | 9 TS M0 | |
Microsoft Windows 2000 Professional | 9 TS M0 | |
Microsoft Windows NT Workstation | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
Microsoft Windows XP Professional | 9 TS M0 | |
64-bit Enabled AIX | 9 TS M0 | |
64-bit Enabled HP-UX | 9 TS M0 | |
64-bit Enabled Solaris | 9 TS M0 | |
HP-UX IPF | 9 TS M0 | |
Linux | 9 TS M0 | |
OpenVMS Alpha | 9 TS M0 | |
Tru64 UNIX | 9 TS M0 | |
*
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 code below routes SAS/GRAPH output to an RTF file with "Page X of Y" information in both the HEADER (TITLE) and FOOTER (FOOTNOTE).
ods escapechar="^";
ods listing close;
/* Turn off the default page number and date */
options nonumber nodate;
ods rtf file="file.rtf" nogfootnote nogtitle;
title j=l 'Page ^{pageof}';
/* A footnote with the same PAGE I of N information, but with a style adjustment added */
footnote j=r '^S={font_size=10pt} Page ^{pageof}';
proc gplot data=sashelp.class;
plot age*height;
run;
quit;
ods rtf close;
ods listing;
The inline style commands THISPAGE, LASTPAGE, and PAGEOF can be used in SAS/GRAPH TITLE and FOOTNOTE statements to display "PAGE X of Y" information.
Date Modified: | 2008-12-12 10:31:09 |
Date Created: | 2008-11-20 11:09:09 |