Procedure features: |
PROC
REPORT statement options:
|
COLUMN statement:
| specifying statistics for stacked variables | |
DEFINE statement options:
|
|
Data set: |
GROCERY
|
Formats: |
$MGRFMT.
|
The report in this example displays six statistics for the sales
for
each manager's store. The output is too wide to fit all the columns on one
page, so three of the statistics appear on the second page of the report.
In order to make it easy to associate the statistics on the second page with
their group, the report repeats the values of Manager and Sector on every
page of the report.
libname proclib 'SAS-data-library';
options nodate pageno=1 linesize=80 pagesize=60
fmtsearch=(proclib);
| proc report data=grocery nowd headline headskip
ls=66 ps=18; |
| column sector manager (Sum Min Max Range Mean Std),sales; |
| define manager / group format=$mgrfmt. id;
define sector / group format=$sctrfmt.;
define sales / format=dollar11.2 ; |
| title 'Sales Statistics for All Sectors';
run; |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.