Date: Wed, 22 Sep 2004 13:49:46 -0500
Reply-To: "Oliver, Richard" <richard@spss.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Oliver, Richard" <richard@spss.com>
Subject: Re: A syntax question
Content-Type: text/plain; charset="us-ascii"
You can't run a procedure (a command that reads the data) within a loop.
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Yanlong Sun
Sent: Wednesday, September 22, 2004 1:47 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: A syntax question
Hi,
Could anybody tell me what I did wrong in the following code?
---------------
loop i=2 to 3.
QUICK CLUSTER response
/MISSING=LISTWISE
/CRITERIA= CLUSTER(i)
/METHOD=KMEANS(NOUPDATE)
/PRINT ANOVA.
end loop.
----------------
When running it in the Syntax Editor (SPSS release 10), I always got the
message:
>Error # 4095. Command name: QUICK CLUSTER
>The transformations program contains an unclosed LOOP, DO IF, or
complex
>file structure. Use the level-of-control shown to the left of the SPSS
>commands to determine the range of LOOPs and DO IFs.
>This command not executed.
Thank you all!
Yanlong
|