LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2009, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page