```Date: Sat, 19 Aug 2006 17:34:03 -0400 Reply-To: Laura Leach Sender: "SPSSX(r) Discussion" From: Laura Leach Subject: Re: Loop and macro help Hi, Thank you for this code. I'm beginning to understand what I need to do, although this syntax didn't work exactly right. Let me add a little explaination and see if this makes sense. qA4 is a place, given a numeric value, but the values don't go in continuous order (e.g., place = 1,2,4,5,6,8,10, etc.) because some places have been omitted from this analysis. Since I need a Base[Place #]_DEL for every qA4, then what you have below doesn't work. qC1 is simply, 1,2,3,4,5. Can I alter the first line to be "loop #i = 1 2 4 5. " and keep line 2, or will that not work? And if that does work to loop through with defined values rather than continuous, how do I get a different output variable for each iteration of the loop? (i.e., Base#i#j_DEL) Thank you so much for your help! Laura > >loop #i = 1 to 90. >loop #j = 1 to 5. >do if (qA4=#i and qC1=#j) . >count Base1E1_FAV = qE1a qE1b qE1c (5 thru 6) . >count Base1E1_TOL = qE1a qE1b qE1c (1 thru 6) . >end if. >end loop. >end loop. >compute Base1E1_DEL = (Base1E1_FAV / Base1E1_TOL) - > > AFFav. >exe. > ```

Back to: Top of message | Previous page | Main SPSSX-L page