recoding problems

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

recoding problems

mmcguire
Dear all
not sure if there's a bug in my SPSS copy but I am continually getting
the following message in my output window when doing recodes

"Warning # 208: A text string is not correctly enclosed in quotation
marks on the command line.  Literals may not be continued across command
lines without the use of the continuation symbol '+'."

The recode then fails to take place.

The recodes are long - but not that long -  and the message seems to
appear erratically. If I do the recode in sections, rather thatn doing
it all in one go it usually lets me. Im using the point and click boxes
rather than a syntax command.
Anyone else encountered this by any chance?

baffling!

Michael Mcguire

--
===============================
Michael McGuire
London Metropolitan University
===============================
Reply | Threaded
Open this post in threaded view
|

Re: recoding problems

Marta Garcia-Granero
Hi Michael

Not a bug in SPSS, but in your code. There is a limit to the lenght of a
syntax line (could it be 80 characters?) The warning is quite clear (and
this is not always the case with SPSS, BTW, some of them are rather
"baffling", as you mention below).

Basically, you have a long string that can't be handled in one single
line, and SPSS splits it in two. For instance, this recode would fail

RECODE var ("This is an example a of veeery long line of test being
wrongly handed by SPSS program in one single line" =....

but this one would suceed:

RECODE var ("This is an example a of veeery long line of test"+
 " being wrongly handed by SPSS program in one single line" =....

See that the long string is split in two lines, with the two pieces
glued together using the + symbol (as the warning says).

Since you are using the point &click menus, hit Paste instead of OK to
take a look at the syntax being generated and post it here if you still
run into troubles.

Regards,
Marta

> not sure if there's a bug in my SPSS copy but I am continually getting
> the following message in my output window when doing recodes
>
> "Warning # 208: A text string is not correctly enclosed in quotation
> marks on the command line.  Literals may not be continued across command
> lines without the use of the continuation symbol '+'."
>
> The recode then fails to take place.
>
> The recodes are long - but not that long -  and the message seems to
> appear erratically. If I do the recode in sections, rather thatn doing
> it all in one go it usually lets me. Im using the point and click boxes
> rather than a syntax command.
> Anyone else encountered this by any chance?
>
> baffling!
>
> Michael Mcguire
>
> --
> ===============================
> Michael McGuire
> London Metropolitan University
> ===============================
>