Date: Fri, 1 Jul 2011 02:21:25 -0700
Reply-To: DEBOER <ronnysentongo@HOTMAIL.COM>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: DEBOER <ronnysentongo@HOTMAIL.COM>
Subject: LOOP
Content-Type: text/plain; charset=us-ascii
Hi guys,
How can I create a variable (loop) that counts from 1 to 5 and then starts 1
to 5 and so on. (see v1 below).
Im trying this
compute v1=0.
loop #i=1 to 5.
compute v1=v1 +1.
end loop.
exe.
v1
1
2
3
4
5
1
2
3
4
5
1
2
3
4
5
1
2
3
4
5
thanks in advance
--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/LOOP-tp4541513p4541513.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
|