Date: Tue, 29 Apr 2008 07:47:55 -0700
Reply-To: Madhu G <c2madhu@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Madhu G <c2madhu@GMAIL.COM>
Organization: http://groups.google.com
Subject: retaining new value....
Content-Type: text/plain; charset=ISO-8859-1
Hi every one....
I have a dataset like this.
data a;
input id sal;
cards;
1 5
2 10
3 20
4 20
;
run;
in the newly created dataset i need the result should be like
this ......
id sal new_var
1 5 5
2 10 15(5+10)
3 20 35(20+15)
4 20 55(20+35)
could any one please guide me inthis logic.....
Regards,
kiran.
|