Sample 25089: Modifying PROC PRINT output for the ODS destinations
The example code on the Full Code tab shows how style options can be added to PROC PRINT.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
ods listing close;
ods html body='body.html';
ods rtf file='test.rtf';
ods pdf file='test.pdf';
proc format;
value hgt low-60='purple'
60<-high='orange';
run;
proc sort data=sashelp.class;
by sex;
run;
proc print data=sashelp.class noobs
n='By-group total=' 'Total Observations='
style(report)=[frame=box rules=groups]
style(n)=[foreground=red]
style(bysumline)=[background=white foreground=blue]
style(grandtotal)=[background=white foreground=green]
style(header)=[font_style=italic background=yellow];
by sex;
sum height;
var name / style(data)=[font_face=arial font_weight=bold];
var age / style(data)=[font_style=italic];
var height / style(data)=[foreground=hgt.];
run;
ods _all_ close;
ods listing;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This example shows how style options can be added to PROC PRINT.
Type: | Sample |
Topic: | SAS Reference ==> ODS (Output Delivery System) SAS Reference ==> Procedures ==> PRINT
|
Date Modified: | 2005-08-27 03:03:13 |
Date Created: | 2005-01-26 16:17:59 |
Operating System and Release Information
SAS System | Base SAS | All | 8 TS M0 | n/a |