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 (February 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 5 Feb 2004 15:59:58 GMT
Reply-To:   John Iwaniszek <not@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   John Iwaniszek <not@HOTMAIL.COM>
Subject:   Re: create a new variable that indicate a change

Jesper Nyholm wrote:

> /*** > Hi > Can anybody tell me how to create a new variable that indicate a change > in amount for every id? > ***/ > DATA TEST; > INPUT ID 1-5 AMOUNT 7-11; > DATALINES; > 10001 2000 > 10001 2000 > 10001 3000 > 10002 2500 > 10002 3000 > 10003 1000 > 10003 1000 > 10003 1000 > 10003 2000 > 10003 1000 > ; >

I would direct you to the section in the SAS manual concerned with "RETAIN", and BY-processing in general.


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