If pp is a string , or filter_across_contrasts is a string, you need to
put the numbers into quotation marks.
IF (pp = '2') filter_across_contrasts = 1.
OR
IF (pp = 2) filter_across_contrasts = '1'.
HTH,
Judith
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of
Marco Venus
Sent: Thursday, 12 April 2007 16:05
To:
[hidden email]
Subject: SPSS error message transformations
Dear list,
I really hope you can help me with this...when I try to carry out
transformations in SPSS (like is shown below) I get this strange error
message. Can anyone tell me how to solve it?
IF (pp = 2) filter_across_contrasts = 1.
Error # 4305 in column 11. Text: )
A relational operator may have two numeric operands or two character
string
operands. To compare a character string to a numeric quantity, consider
using the STRING or NUMBER function.
This command not executed.
Thanks in advance!
Marco Venus
--
<img src="
http://members.home.nl/f-venhemmen/MER/dutch.linguistics3.png>