LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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....
Comments: To: sas-l@uga.edu
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.


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