|
Hi,
I wrote the following syntax: do repeat x=Importance1 TO Importance31/ y=Level_Today1 TO Level_Today31/ z=diff1 TO diff31 COMPUTE z=x-y End repeat. I keep getting an error stating that: do repeat x=Importance1 TO Importance31/ y=Level_Today1 TO Level_Today31/ z=diff1 TO diff31 COMPUTE z=x-y End repeat. >Error # 4502 in column 10. Text: = >An equals sign appears in a variable or value list where it is not >expected. It will be ignored. >This command not executed. >Error # 4508 in column 12. Text: - >Unrecognized text appears on the DO REPEAT command. It will be ignored. Can anyone help?? I don't see anything wrong with it... Thanks, Scott ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
Your missing the period after the DO REPEAT command.
-----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Scott Collier Sent: Thursday, January 31, 2008 3:25 PM To: [hidden email] Subject: Syntax problem Hi, I wrote the following syntax: do repeat x=Importance1 TO Importance31/ y=Level_Today1 TO Level_Today31/ z=diff1 TO diff31 COMPUTE z=x-y End repeat. I keep getting an error stating that: do repeat x=Importance1 TO Importance31/ y=Level_Today1 TO Level_Today31/ z=diff1 TO diff31 COMPUTE z=x-y End repeat. >Error # 4502 in column 10. Text: = >An equals sign appears in a variable or value list where it is not >expected. It will be ignored. >This command not executed. >Error # 4508 in column 12. Text: - >Unrecognized text appears on the DO REPEAT command. It will be ignored. Can anyone help?? I don't see anything wrong with it... Thanks, Scott ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
> Your missing the period after the DO REPEAT command.
And after the COMPUTE command and the DIFF31 at the end of the z= command. ie: > do repeat > x=Importance1 TO Importance31/ > y=Level_Today1 TO Level_Today31/ > z=diff1 TO diff31. > COMPUTE z=x-y. > End repeat. Necia A. Black, Ph.D. e-mail: [hidden email] 246 Computing Center Web URL:http://www.acsu.buffalo.edu/~black SUNY-Buffalo Buffalo, New York 14260 On Thu, 31 Jan 2008, ViAnn Beadle wrote: > > -----Original Message----- > From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of > Scott Collier > Sent: Thursday, January 31, 2008 3:25 PM > To: [hidden email] > Subject: Syntax problem > > Hi, > > I wrote the following syntax: > do repeat > x=Importance1 TO Importance31/ > y=Level_Today1 TO Level_Today31/ > z=diff1 TO diff31 > COMPUTE z=x-y > End repeat. > > > I keep getting an error stating that: > > do repeat > x=Importance1 TO Importance31/ > y=Level_Today1 TO Level_Today31/ > z=diff1 TO diff31 > COMPUTE z=x-y > End repeat. > >> Error # 4502 in column 10. Text: = >> An equals sign appears in a variable or value list where it is not >> expected. It will be ignored. >> This command not executed. > > >> Error # 4508 in column 12. Text: - >> Unrecognized text appears on the DO REPEAT command. It will be ignored. > > Can anyone help?? I don't see anything wrong with it... > > Thanks, > Scott > > ===================== > To manage your subscription to SPSSX-L, send a message to > [hidden email] (not to SPSSX-L), with no body text except the > command. To leave the list, send the command > SIGNOFF SPSSX-L > For a list of commands to manage subscriptions, send the command > INFO REFCARD > > ===================== > To manage your subscription to SPSSX-L, send a message to > [hidden email] (not to SPSSX-L), with no body text except the > command. To leave the list, send the command > SIGNOFF SPSSX-L > For a list of commands to manage subscriptions, send the command > INFO REFCARD > > > ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
