No, I don't get an error message. The syntax runs, but no values are in the variable after the syntax runs.
My original variables are numeric and they are scaled.
The original dataset has race listed as white, black, native american, asian, and multi race.
I then recoded the variable (RaceRC) so that race is listed as 1-4.
The original dataset has hispanics listed separately as a dummy variable. (Hispanic =1 Non Hispanic = 2).
I recoded this variable (Hisp) as Hispanic = 5 and Non Hispanic =6.
Then I used the syntax
IF (RaceRC=1 & Hisp=0) NewRace=1.
IF (RaceRC=2 & Hisp=0) NewRace=2.
IF (RaceRC=3 & Hisp=0) NewRace=3.
IF (RaceRC=4 & Hisp=0) NewRace=4.
IF (RaceRC=5 & Hisp=0) NewRace=5.
IF (RaceRC=6 & Hisp=0) NewRace=6.
SPSS lets me run it, and it creates a new variable, but no values are in the variable. Does this make sense?