Chapter Contents |
Previous |
Next |
The REPORT Procedure |
Procedure features: |
| ||||||||||||||||||||||||||||||||||||
Data set: | GROCERY | ||||||||||||||||||||||||||||||||||||
Formats: | $MGRFMT. and $DEPTFMT. |
Program |
libname proclib 'SAS-data-library';
options nodate pageno=1 linesize=64 pagesize=60 fmtsearch=(proclib);
proc report data=grocery nowd colwidth=10 spacing=5 headline headskip; |
column manager department sales; |
define manager / order order=formatted format=$mgrfmt.; define department / order order=internal format=$deptfmt.; |
define sales / analysis sum format=dollar7.2; |
break after manager / ol summarize skip; |
compute after; line 'Total sales for these stores were: ' sales.sum dollar9.2; endcomp; |
where sector='se'; |
title 'Sales for the Southeast Sector'; run; |
Output |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.