Hi PG, another two questions: 1. I found that the rolling sum includes the last year when I use that code. For example, rolling sum for Year 1994= 1990+1991+1992+1993+1994. what I want to is rolling sum for Year 1995 = 1990+1991+1992+1993+1994. Is there any solution for this kind of rolling sum? 2. When I use the following code to remove FUZZ, I found that other value also changed. For example, some value was 1 originally. It changed to be 0 after I applied the following code. Is it the right code? data a2; set a1; if rolling5<1 then rolling5 = 0; run; Thanks in advance!
... View more