tags:

views:

2662

answers:

3

What exactly is the difference between Proc Means and Proc Summary? Many sites state that both these are same, but unless each has something unique will SAS create it?

+8  A: 

My understanding is that the PROC SUMMARY code for producing an output data set is exactly the same as the code for producing an output data set with PROC MEANS. The difference between the two procedures is that PROC MEANS produces a report by default, whereas PROC SUMMARY produces an output data set by default. So if you want a report printed to the listing - use proc means - if you want the info passed to a data set for further use - proc summary may be a better choice.

cmjohns
+4  A: 

@cmjohns gives the biggest difference...and from SAS discussion forum

"In earlier versions of SAS (SAS 5 and 6) PROC MEANS and PROC SUMMARY were separate procedures. Over time, by version 8, the code for the 2 procedures was standardized and "melded" together. There are essentially no differences except that MEANS creates output in the LISTING window or other open destinations, while SUMMARY creates an output dataset by default." (use the PRINT option in the Proc Summary statement to generate output)

Check the link Here

CarolinaJay65
A: 

I have come across situations in SAS 9.1.3 where proc means has had "out of memory" problems yet proc summary will still run the equivalent request just fine. Something to keep in mind if you ever run into this problem.

Rob Penridge