I have a dataset where each case has the following set of variables:
VarA1.1 - VarA25.185 (total 4625 variables) VarB.1 - VarB.185 (total 185 variables)
In each case, VarA1.1, VarA2.1, VarA3.1, etc. linked to the same VarB. 1.
I want to use the REPEAT function to search through each .1 instance, using both VarA and VarB.
Code example:
DO REPEAT VarA = VarA1.1 to VarA25.185
/ VarB = VarB.1 to VarB.185.
if (VarA = X) AND ((VarB-Y)<0)
VarC = Z.
END REPEAT.
EXE.
However, it seems that since VarA and VarB have different numbers of variables in the repetition list, they are not concatenated. I want to associate each VarA # (1-25) .1 with VarB.1, each VarA # (1-25) .2 with each VarB.2, etc. Prior to VarB.185, so variable matching uses variable pairing in the repeat function.
Thank!