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 headline headskip; |
column sector manager sales; |
define sector / group format=$sctrfmt. 'Sector'; define manager / group format=$mgrfmt. 'Manager'; define sales / analysis sum format=comma10.2 'Sales'; |
break after sector / ol summarize suppress skip; |
compute after; line 'Combined sales for the northern sectors were ' sales.sum dollar9.2 '.'; endcomp; |
compute sales; if _break_ ne ' ' then call define(_col_,"format","dollar11.2"); endcomp; |
where sector contains 'n'; title 'Sales Figures for Northern Sectors'; run; |
Output |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.