
| Features: |
|
| Other features: |
TITLE statement |
| Data set: | GROCERY |
| Formats: | $MGRFMT |
libname proclib
'SAS-library';
options fmtsearch=(proclib);
proc report data=grocery nowd headline; title;
column ('Individual Store Sales as a Percent of All Sales'
sector manager sales,(sum pctsum) comment);
define manager / group
format=$mgrfmt.;
define sector / group
format=$sctrfmt.;
define sales / format=dollar11.2
'';
define sum / format=dollar9.2
'Total Sales';
define pctsum / 'Percent of Sales' format=percent6. width=8; define comment / computed width=20 '' flow;
compute comment / char length=40;
if sales.pctsum gt .15 and _break_ = ' '
then comment='Sales substantially above expectations.';
else comment=' ';
endcomp;
rbreak after / ol summarize; run;
column ('Individual Store Sales as a Percent of All Sales'
sector manager sales,(sum pctsum) comment); define manager / group
format=$mgrfmt.;
define sector / group
format=$sctrfmt.;
define sales / format=dollar11.2
'';
define sum / format=dollar9.2
'Total Sales';define pctsum / 'Percent of Sales' format=percent6. width=8; define comment / computed width=20 '' flow;
if sales.pctsum gt .15 and _break_ = ' '
then comment='Sales substantially above expectations.';
else comment=' ';
endcomp;