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 (December 1999, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 12 Dec 1999 11:50:49 -0600
Reply-To:   Henry Feldman <hfeldman@CONCEPTUAL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Henry Feldman <hfeldman@CONCEPTUAL.COM>
Subject:   Lag function and by groups
Content-Type:   text/plain; charset="iso-8859-1"

I really wish it was possible to clear the lag "stack" at the beginning of each by group.

Long time ago I wrote a stock moving average program. Since there was more than one stock in the database using the lag was a mess. I had to keep track of the record number within the by group so I would know if the value popped off the stack was for this stock or the previous.

Maybe there should be a clear_lags; statement.

Henry


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