| Procedure features: |
| PROC PRINT statement options:
|
| BY statement |
| PAGEBY
statement |
|
| Other features: |
| SORT procedure |
| LABEL statement |
|
| Data set: |
EXPREV
|
This example
- suppresses
the printing of observation numbers at the beginning
of each row
- presents the data for each state in a separate section of the
report
- begins a new page for each region.
options pagesize=60 pageno=1 nodate linesize=70;
 | proc sort data=exprev;
by region state month;
run; |
 | proc print data=exprev n='Number of observations for the state: '
noobs label;
|
 | var month expenses revenues;
|
 | by region state;
pageby region;
|
 | label region='Sales Region';
|
 | format revenues expenses comma10.;
title 'Sales Figures Grouped by Region and State';
run; |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.