Date: Fri, 1 Mar 2002 16:57:53 -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: Yrmoda problem
Content-Type: text/plain; charset="iso-8859-1"
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
|