Date: Fri, 1 Mar 2002 20:38:35 -0500 Raynald Levesque "SPSSX(r) Discussion" Raynald Levesque Re: Yrmoda problem <870179850CB9D511842700065B1A708401E49B@alcoex10.co.alameda.ca.us> text/plain; charset="iso-8859-1"

Try this

compute flag = 0. FORMATS flag (F1). 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. end if.

execute.

Raynald Levesque rlevesque@videotron.ca Visit my SPSS Pages http://pages.infinit.net/rlevesqu/index.htm

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of Raffe, Sydelle, SSA Sent: March 1, 2002 7:58 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Yrmoda problem

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

Back to: Top of message | Previous page | Main SPSSX-L page