Date: Sat, 2 Mar 2002 09:02:23 -0500
Reply-To: Art@DrKendall.org
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Art Kendall <Arthur.Kendall@VERIZON.NET>
Subject: Re: Yrmoda problem
Content-Type: text/plain; charset=us-ascii
Don't you want
else if (discd le ' 51' or discd ge ' 57').
rather than
else if (discd le ' 51' and discd ge ' 57'). ?
the paren is misplaced
if (yrmoda(discyr,discmo,discdy) gt yrmoda(appryr,apprmo,apprdy) ) flag = 1.
the outer set isolates the complete condition.
the inner sets isolate the specifications to the yrmoda function.
"Raffe, Sydelle, SSA" wrote:
> Hi list. Spss (9.1) does not like my comma after discyr. Actually, it
> didn't like anything about my syntax below. Comments please -- thanks.
>
> compute flag = 0.
> EXECUTE.
> FORMATS flag (F1).
> do if (discd gt ' 51' and discd lt ' 57').
> if yrmoda((discyr,discmo,discdy) gt yrmoda(appryr,apprmo,apprdy)) flag = 1.
>
> >Error # 4026 in column 18. Text: ,
> >An expression contains a misplaced comma. Check the expression for omitted
> >or extra operands, operators, and parentheses. Also check for a number
> >specified with a comma vas the decimal delimiter. Commas cannot be used as
> >decimal delimiters in transformations.
> >This command not executed.
>
> else if (discd le ' 51' and discd ge ' 57').
> compute flag = 0.
>
> 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.
>
> 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.
>
> Sydelle Raffe
> OAP
> 1106 Madison Avenue
> Oakland, CA 94607
> phone (271(2)9143)
> e-mail (draffe@co.alameda.ca.us
|