Chapter Contents |
Previous |
Next |
The TABULATE Procedure |
Procedure features: |
| |||||||||||
Other features: | ODS HTML statement | |||||||||||
Data set: | ENERGY | |||||||||||
Formats: | REGFMT, DIVFMT, and USETYPE |
Program |
ods html body='external-file'; |
proc tabulate data=energy style=[font_weight=bold]; |
class region division type / style=[just=center]; |
classlev region division type / style=[just=left]; |
var expenditures / style=[font_size=3]; |
keyword all sum / style=[font_width=wide]; keylabel all="Total"; |
table (region all)*(division all*[style=[background=yellow]]), (type all)*(expenditures*f=dollar10.) / style=[background=red] |
misstext=[label="Missing" style=[font_weight=light]] |
box=[label="Region by Division by Type" style=[font_style=italic]]; |
format region regfmt. division divfmt. type usetype.; title 'Energy Expenditures'; title2 '(millions of dollars)'; run; |
ods html close; |
HTML Body File |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.