| 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
|