Date: Mon, 12 Jun 2000 11:53:47 GMT0BST
Reply-To: PAUL MCGEOGHAN <Mcgeoghan@CARDIFF.AC.UK>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: PAUL MCGEOGHAN <Mcgeoghan@CARDIFF.AC.UK>
Subject: loop syntax
Hi,
I am trying to produce some syntax which will do a number of
scatterplots with the same dependent Y variable each time plotted
against a number of X variables which are adjacent to each other in the
dataset.
I have produced some simple syntax which I thought would do this:
LOOP #I=SALBEGIN TO PREVEXP.
GRAPH
/SCATTERPLOT(BIVAR)=salbegin WITH #I
/MISSING=LISTWISE .
END LOOP.
Is this possible to do and why does the above give me the
following error:
Error # 4095. Command name: GRAPH
>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.
Thanks in advance,
Paul
-----------------------------------------------
Paul McGeoghan
Application Support Specialist
(Statistics and databases support)
Information Services
Cardiff University
40-41 Park Place
CARDIFF
(029) 20875035
|