LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2011)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 22 Feb 2011 10:57:47 -0800
Reply-To:     David Marso <david.marso@gmail.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         David Marso <david.marso@gmail.com>
Subject:      Re: scratch variables in do-repeat loop
In-Reply-To:  <A715D7E005BF1C4D8505CA3CABB748F20263F41E@HCAMAIL03.ochca.com>
Content-Type: text/plain; charset=us-ascii

Yet another method (might be marginally faster than the DO REPEAT as it short circuits the lookup).: Would be interesting to compare the 3 approaches (LOOP/DO REPEAT/ANY?). HTH, David -- data list / test1 1-5 (A) test2 7-11 (A) test3 13-17 (A). begin data 50000 64233 44444 88888 00321 23456 89989 50000 23242 end data. VECTOR test=test1 to test3. LOOP #=1 to 3. COMPUTE MAMM=LTRIM(RTRIM(test(#)))="50000". END LOOP IF MAMM. end loop. -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/scratch-variables-in-do-repeat-loop-tp3395727p3395991.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


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