Today I calculate

Code:
gen year1a=1 if yr <=ei +1
While ei=. and yr=1990, I saw the result of year1a for this observation is 1.
While ei=2008 and yr=2009, year1a =. , exactly what I want.
It is quite strange to me because previously when using SAS, "." is the lowest number.