Date: Thu, 7 Jul 2005 15:28:52 -0700
Reply-To: David Fickbohm <davefickbohm@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David Fickbohm <davefickbohm@YAHOO.COM>
Subject: proc means tip
Content-Type: text/plain; charset=iso-8859-1
People,
I have found a way to easily run a statistic against many varibables.
proc means data = xx;
by var(s);
output out = yy;
sum= / autoname;
run;
This will sum all numeric variables. It will add _sum to the end of each variable in the output dataset. I would assume it works with other statistics. Though I have not tested any.
I have found it useful.
Dave Fickbohm
Use Technology to the Fullest
1250 45th st suite 200
Emeryville, CA, 94608
510 594 4151 voice
---------------------------------
Sell on Yahoo! Auctions - No fees. Bid on great items.
|