I;m sorry my question was not clear. What I need to do in this new question is to create 5 new variables: ToTPass1 ~ ToTPass5, for this of course I will use the ARRAY statement. In each variable, I need the CUMULATIVE sum of the previous values (example, observation n has Pass1 = 1, Pass2 = 0 , Pass3 = 0, Pass4 = 1, Pass5 = 1, then this observation will have TotPass1 = 1, TotPass2 = 1, TotPass3 = 1, TotPass4 = 2, TotPass5 = 3.). For this step, I will need to use the RETAIN statement. Please help. Thank you
... View more