![]() Chapter Contents |
![]() Previous |
![]() Next |
The TABULATE Procedure |
Procedure features: |
| ||||||||||||
Data set: | ENERGY | ||||||||||||
Formats: | REGFMT., DIVFMT., and USETYPE |
Program |
![]() | options nodate pageno=1 linesize=64 pagesize=60; proc tabulate data=energy format=comma12.; |
![]() | class region division type; var expenditures; |
![]() | table region*(division all='Subtotal') all='Total for All Regions'*f=dollar12., |
![]() | type='Customer Base'*expenditures=' '*sum=' ' all='All Customers'*expenditures=' '*sum=' ' |
![]() | / rts=25; |
![]() | format region regfmt. division divfmt. type usetype.; title 'Energy Expenditures for Each Region'; title2 '(millions of dollars)'; run; |
Output |
The universal class variable ALL provides subtotals and totals in this table. |
![]() |
![]() |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.