Rép. : unstrung over string variable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Rép. : unstrung over string variable

Philippe Naud
Just to be sure... since you're working with a string variable, you did
not forget to put your value 'CA' and 'CO' between cotation marks when
you use them in your syntax?

Philippe


>>> Tanya Temkin <[hidden email]> 2007-03-16 11:23 >>>

I wish I had more interesting problem to present but this is just
annoying
the #$%! out of me. Sometimes it's the "simple" things that get
you....

I have a nice string variable that I brought in from Excel called
CA_CON,
with two values CA (for case) and CO (for control). Each record in the

file is coded as CA or CO. Whenever I try to do the simplest thing like

set up IF statements or resort to the good old GUI to select cases with
a
value of CA or CO, I get this love poem from SPSS (v14.0, on Windows):

"Incorrect variable name: either the name is more than 64 characters;
or
it is not defined by a previous command."

Yeah, well we can see the variable isn?t 64 characters long, it already

exists, when I go DISPLAY VARIABLES all its attributes are displayed,
there aren?t any blank spaces before or after the variable name; I?ve
renamed the variable in variable viewer to CASE_CNTRL but same
thing.still
happens.

What?s up here? What tree is getting in the way of my seeing the
forest?

Thanks

Tanya

NOTICE TO RECIPIENT:  If you are not the intended recipient of this
e-mail, you are prohibited from sharing, copying, or otherwise using or

disclosing its contents.  If you have received this e-mail in error,
please notify the sender immediately by reply e-mail and permanently
delete this e-mail and any attachments without reading, forwarding or
saving them.  Thank you.