Chapter Contents |
Previous |
Next |
The TABULATE Procedure |
Procedure features: |
| |||||||||
Other features: | FORMAT statement |
Program |
data energy; length State $2; input Region Division state $ Type Expenditures; datalines; 1 1 ME 1 708 1 1 ME 2 379 . . . more lines of data . . . 4 4 HI 1 273 4 4 HI 2 298 ; |
options nodate pageno=1 linesize=80 pagesize=60; proc tabulate data=energy format=dollar12.; |
class region division type; var expenditures; |
table region*division, type*expenditures |
/ rts=25; |
format region regfmt. division divfmt. type usetype.; title 'Energy Expenditures for Each Region'; title2 '(millions of dollars)'; run; |
Output |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.