Hi everyone, I am new to this forum, this is my first message and i'm not sure if this is the best subforum for ask it.

I have a trouble reconverting a variable, i'm going to expose my case:

-Imagine that I have 3 variable (VAR1, VAR2, VAR3) with 3 lables eachone (1,2,3) and i want to create an auxiliar variable (AUX) that

if VAR1 is 1 then AUX= 1

if VAR1 is 2 then AUX= 2

if VAR1 is 3 then AUX= 3

if VAR2 is 1 then AUX= 4

if VAR2 is 2 then AUX= 5

if VAR2 is 3 then AUX= 6

if VAR3 is 1 then AUX= 7

if VAR3 IS 2 then AUX= 8

if VAR3 is 3 then AUX= 9

I could do 9 "if" but the problem is that I have 90 variables with different number of labels each one, how can i create this auxiliar variable with SPSS syntax?

Thank you for the help mates!