PROC MEANS computes descriptive statistics
PROC SUMMARY is the same as PROC MEANS, however, its results are written to an output dataset.
PROC TABULATE elaborates on PROC MEANS/SUMMARY - displays descriptive statistics in tabular format.
Where are PROC MEANS, SUMMARY, TABULATE tasks in SAS Enterprise Guide?
PROC MEANS (and PROC SORT & UNIVARIATE)
View -> Tasks -> Describe -> Summary Statistics / Summary Statistics Wizard
PROC SUMMARY is not generated by SAS Enterprise Guide - use code
PROC TABULATE
View -> Tasks -> Describe -> Summary Tables / Summary Tables Wizard
Where are PROC MEANS, SUMMARY, TABULATE tasks in SAS Studio?
PROC MEANS
Tasks -> Statistics -> Summary Statistics
PROC SUMMARY & PROC TABULATE
Not generated by SAS Studio at this time of this article's publication - use code
Examples
Here is some code that you can run using fictitious data included with all SAS installations:
proc means data=sashelp.cars;
var msrp invoice;
run;
proc summary data=sashelp.cars;
var msrp invoice;
OUTPUT out=WORK.summaryout
(LABEL="PROC SUMMARY Output Table for SASHELP.CARS");
run;
PROC TABULATE
DATA=SASHELP.CARS
OUT=WORK.tabulateout
(LABEL="PROC TABULATE Output Table for SASHELP.CARS")
FORMAT=comma10.2;
VAR Weight Wheelbase;
CLASS Type / ORDER=freq MISSING;
TABLE /* Row Dimension */
Type,
/* Column Dimension */
N
Weight * Range
Wheelbase * Mean;
;
RUN; QUIT;
Adding PROC FORMAT can enhance your PROC TABULATE results; here color is emphasized:
PROC FORMAT;
VALUE watchit
0 - 20000 = 'Green'
20001 - 30000 = 'Orange'
30001 - 50000 = 'Blue'
50001 - 60000 = 'Purple'
60001 - high = 'Red';
RUN;
PROC TABULATE data=sashelp.cars S=[foreground=watchit.]
FORMAT=dollar10.2
OUT=WORK.tabulatecolor
(LABEL="PROC TABULATE Output Table for SASHELP.CARS");
CLASS type cylinders / MISSING;
VAR invoice;
TABLE type ALL,
Invoice * mean;
RUN;
Conclusion
PROC MEANS, SUMMARY, TABULATE are similar in terms of the descriptive statistics that they generate, yet they are also different because of their outputs. Because PROC TABULATE gives you the most control, its versatility may be the best fit for most scenarios.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.