Date: Sat, 31 Oct 2009 11:49:03 +0530
Reply-To: urbunti@yahoo.com
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Bunti <urbunti@YAHOO.COM>
Subject: Can this be done in data step
Content-Type: text/plain; charset=utf-8
All,
I was wondering if below code can be done in data step
proc sql;
select *, (sal*100)/sum(sal) from table;
quit;
table is something like this
name sal
a 100
b 200
c 300
Regards,
Urvir
Keep up with people you care about with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/connectmore
|