| Date: | Mon, 31 Oct 2005 15:15:42 -0500 |
| Reply-To: | Chang Chung <chang_y_chung@HOTMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Chang Chung <chang_y_chung@HOTMAIL.COM> |
| Subject: | Re: An Alternative to LAG function |
|
On Mon, 31 Oct 2005 13:22:49 -0500, Richard A. DeVenezia
<radevenz@IX.NETCOM.COM> wrote:
>Hi Chang:
>
>I might suggest the # symbol as the operator for this language construct.
>It fits nicely with the concept of # as line number in input, put and window
>statements. [] () and {} are ingrained as rowwise array address bounders.
>
>var#n fetches value of var at row n
>var#-n fetches value of var at nth prior row
>var#+n fetches value of var at nth next row
>var#(expression) value of var at row of evaluated expression
>var#-(expression) value of var at evaluated expression prior row
>var#+(expression) value of var at evaluated expression next row.
Hi, Richard,
Makes perfect sense. You should be the head architect of the sas language!!
Cheers,
Chang
|