BookmarkSubscribeRSS Feed
rajeshalwayswel
Pyrite | Level 9

I have some knowledge on proc means and summary.

 

proc means : 1) The print option is set by default which displays output . 2) Omitting the var statement analyses all the numeric variable. Proc Summary : 1) No print option is set by default,which displays no output. 2) Omitting the variable statement produces a simple count of observation.

 

Can say me some more difference between two of the procedure other than two....

3 REPLIES 3
lethcons
Obsidian | Level 7

I think that's about it. Many years ago they did have slightly different functionality, but this converged with later versions of SAS, and I think it's just the default behaviour that is now different. Quite probably there is only one set of underlying code.

Reeza
Super User

I believe Univariate, Summary and Means all use the same engine under the 'hood'. 

They have slight differences but the core functionality is the same. 

ballardw
Super User

When I started with SAS 5.1 Proc means only sent output to what is now the Listing destination. If you wanted similar output into a data set Proc Summary was required.

 

Default output datasets often have different structures for what appears to be identical code. Please see:

Proc means data=sashelp.class;
   class sex;
   output out=work.meansoutput ;
run;

Proc summary data=sashelp.class;
   class sex;
   output out=work.summaryoutput ;
run;

I actually continue to use Proc Means and Summary separately so when I look at my code I can quickly tell which was to create data sets and which was to display summaries.

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 9995 views
  • 4 likes
  • 4 in conversation