Date: Thu, 7 Jul 2005 15:35:48 -0700
Reply-To: "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject: Re: proc means tip
Thanks for the tip David. Autoname works with all the statistic keywords.
I had always used the _numeric_ shorthand to get at all the numeric
proc means data = sashelp.class noprint;
output out=yy sum= mean= std= / autoname;
DDS Data Extraction
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of David
Sent: Thursday, July 07, 2005 3:29 PM
Subject: proc means tip
I have found a way to easily run a statistic against many varibables.
proc means data = xx;
output out = yy;
sum= / autoname;
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.
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.