SPSS problem HELP

Posted by maartjegoorden on
URL: http://spssx-discussion.165.s1.nabble.com/SPSS-problem-HELP-tp4586566.html

Hello! I am pretty new at spss macro's, but I think I need one.

I have 400 variables, I want to do this loop 400 times.  My variables are ordered consecutively. Who can help me ? So first I want to do this loop for variables 1 to 4, than for variables 5 to 8, than for variables 8 to 12 and so on.

vector TEQ5DBv=T0EQ5DNL to T4EQ5DNL.
loop #index = 1 to 4.
+ IF( MISSING(TEQ5DBv(#index+1))) TEQ5DBv(#index+1) = TEQ5DBv(#index) .
end loop .
EXECUTE .

Thank you very much! Greetings maartje