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 (July 1999)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 29 Jul 1999 09:26:09 +0100
Reply-To:     "John S. Lemon" <j.s.lemon@ABDN.AC.UK>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         "John S. Lemon" <j.s.lemon@ABDN.AC.UK>
Subject:      Repeating compute statements
Comments: To: Grant <grant@ASKAFRIKA.CO.ZA>
In-Reply-To:  <001401bed996$e0113b20$71c6ef9b@grant>
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

Grant

You asked

> Sorry about the basic question! I need to repeat the > following compute > statement 74 times, is there a way that I can do it quicker than doing each > statement separately. The questions range from q1 to q74. I've tried > various ways but with no success.

Try a syntax run with -

DO REPEAT XV1 = Q1 TO Q71. COMPUTE XV1 = (mean(XV1)/5)*100. END REPEAT. EXECUTE .

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John S. Lemon Email: j.s.lemon@abdn.ac.uk Aberdeen University Computing Centre Tel: +44 1224 273350 ABERDEEN Scotland Fax: +44 1224 273372 http://www.abdn.ac.uk/~com045 University Year 2000 page http://www.abdn.ac.uk/y2000/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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