Features: |
PROC MEANS statement option: NOPRINT CLASS statement
TYPES statement |
Other features: |
FORMAT procedure FORMAT statement PRINT procedure RENAME= data set option |
Data set: | Charity |
proc format; value yrFmt . = " All"; value $schFmt ' ' = "All "; run;
proc means data=Charity noprint;
class School Year;
types () school year;
var MoneyRaised;
output out=top3list(rename=(_freq_=NumberStudents))sum= mean= idgroup( max(moneyraised) out[3] (moneyraised name school year)=)/autolabel autoname;
label MoneyRaised='Amount Raised'; format year yrfmt. school $schfmt. moneyraised dollar8.2; run;
proc print data=top3list; title1 'School Fund Raising Report'; title2 'Top Three Students'; run;
proc datasets library=work nolist; contents data=top3list; title1 'Contents of the PROC MEANS Output Data Set'; run;
output out=top3list(rename=(_freq_=NumberStudents))sum= mean= idgroup( max(moneyraised) out[3] (moneyraised name school year)=)/autolabel autoname;