| Date: | Mon, 6 Oct 2008 15:54:39 -0400 |
| Reply-To: | Randy <randistan69@HOTMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Randy <randistan69@HOTMAIL.COM> |
| Subject: | Missing variables |
|---|
Dear All:
My data is as follows
varID
1
2
3
4
0
7
8
0
10
11
12
0
16
and so on
I need to construct another var, VARID_one
where
varid varid_one
1 1
2 2
3 3
4 4
0 6
7 7
8 8
0 9
10 10
11 11
12 12
0 15
16 16
Where the when the value of VarID = 0 then VarID_one = the next value of
VarID - 1.
Randy
|