If the string contains only numbers, you can convert it to numeric and then
compare to some other numeric. To convert use the following syntax:
RECODE stringvar (CONVERT) INTO newvar.
Hector
-----Mensaje original-----
De: SPSSX(r) Discussion [mailto:
[hidden email]] En nombre de
Samuel Solomon
Enviado el: Tuesday, July 18, 2006 12:29 PM
Para:
[hidden email]
Asunto: comparing string to numeric
Hi list,
I would like you to help me on how I could compare a string to numeric
and vice versa.
With profuse thanks,
Samuel.