Usage Note 24460: Can I add a standard line of text to all of my ODS output?
You can use PROC TEMPLATE to change or create a style definition. Specify text with the POSTTEXT= argument in the PAGENO style element. Then when you specify the style, the text appears beneath the page number in the output. The following example code adds a "CONFIDENTIAL" notice. The example code includes an ODS RTF statement, but the style can also be applied to the ODS Printer destinations (PS, PDF, PCL), which also use the PAGENO style element.
ods path work.template(update)
sasuser.templat(update)
sashelp.tmplmst(read);
proc template;
define style mystyle;
parent=styles.rtf;
Style PageNo from PageNo /
font = fonts("strongFont")
posttext= "(*ESC*)R/RTF'{ \line \fs15 CONFIDENTIAL } '" ;
end;
run;
ods rtf file="test.rtf" style = mystyle;
title "One" ;
proc print data=sashelp.class(obs=3); run;
title "Two" ;
proc print data=sashelp.class(obs=3); run;
title "Three" ;
proc print data=sashelp.class(obs=3); run;
title "Four" ;
proc print data=sashelp.class(obs=3); run;
ods _all_ close ;
Operating System and Release Information
*
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: | Usage Note |
| Priority: | low |
| Topic: | Third Party ==> Output ==> RTF System Administration ==> Printing SAS Reference ==> ODS (Output Delivery System)
|
| Date Modified: | 2005-11-30 15:35:19 |
| Date Created: | 2005-11-30 11:46:22 |