Date: Fri, 1 Mar 2002 17:14:01 -0800
Reply-To: "Raffe, Sydelle, SSA" <DRaffe@co.alameda.ca.us>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Raffe, Sydelle, SSA" <DRaffe@co.alameda.ca.us>
Subject: do if problem
Content-Type: text/plain; charset="iso-8859-1"
Can someone tell me what's wrong with my do if -end if syntax?
Here's the response I get:
compute flag = 0.
do if (discd gt ' 51' and discd lt ' 57').
if (yrmoda(discyr,discmo,discdy) gt yrmoda(appryr,apprmo,apprdy)) flag = 1.
else if (discd le ' 51' and discd ge ' 57').
compute flag = 0.
execute.
EXECUTE.
>Error # 4095. Command name: EXECUTE
>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.
Then it keeps trying to execute and I have to manually run "transformations
pending". But it keeps executing. The messages are the same as the above.
Thanks.
Sydelle Raffe
OAP
1106 Madison Avenue
Oakland, CA 94607
phone (271(2)9143)
e-mail (draffe@co.alameda.ca.us
|