Date: Fri, 9 Dec 2005 16:40:47 -0500
Reply-To: "Feinstein, Zachary" <ZFeinstein@HarrisInteractive.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Feinstein, Zachary" <ZFeinstein@HarrisInteractive.com>
Subject: Workaround for Not Being Able to Nest DO REPEAT Loops
Content-Type: text/plain; charset="US-ASCII"
I am looking for a workaround for not being able to nest DO REPEAT
loops. Perhaps some kind of LOOP would solve this? I'm not too handy
with LOOPs though.
I get errors from the following code and I figure there must be an
easier/more workable way of doing the following. There are actually
many more brand than the five below I specify I need to combine. They
correspond with ba through be. The key line is how I have the 2nd DO
REPEAT loop grab overall variables from the 1st one where it says
/t_brand = ba bb bc bd be. But it does not work.
Any and all ideas are great. Thanks in advance.
brand_m = c3 c8 c9 c11 c4a1 c4a2 c4a3 c4a4 c4a5 c4a6
/ba = c3a c7a c8a c11aa c4a1a c4a2a c4a3a c4a4a c4a5a c4a6a
/bb = c3b c7b c8b c11ab c4a1b c4a2b c4a3b c4a4b c4a5b c4a6b
/bc = c3c c7c c8c c11ac c4a1c c4a2c c4a3c c4a4c c4a5c c4a6c
/bd = c3d c7d c8d c11ad c4a1d c4a2d c4a3d c4a4d c4a5d c4a6d
/be = c3e c7e c8e c11ae c4a1e c4a2e c4a3e c4a4e c4a5e c4a6e.
DO REPEAT brand = 1 2 3 4 5
/t_brand = ba bb bc bd be.
IF (stack_co = brand) brand_m = t_brand.