Hi ,
In dataset, I have one categorical variable(7 categories), but in SPSS it is divided into 7 lines(Variables).
What prevents you from living as your gender identity?Variable 1 My family (1=YES) (only 1 label"1=yes". no other lables. )
Variable 2 My friends(1=YES)
Variable 3 My colleagues(1=YES)
Variable 4 My child(1=YES)
Variable 5 My parents(1=YES)
Variable 6 stress(1=YES)
Variable 7 prior experience(1=YES)

I was trying to recode them into a new
Variable A29 with 7 categories.
Variable A29(1=Family, 2=friends,3=colleagues, 4=child, 5= parents, 6= stress, 7 =prior experience)
I ran syntax as below:
COMPUTE A29 = 0.
IF (Q29_1=1) A29=1.
IF(Q29_2=1) A29=2.
IF (Q29_3=1) A29=3.
IF (Q29_4=1) A29=4.
IF (Q29_5=1) A29=5.
IF (Q29_6=1) A29=6.
IF (Q29_7=1) A29=7.
IF (Q29_8=1) A29=8.
IF (Q29_9=1) A29=9.
But nothing came up in A29.

Could you please help solve this problem?
Many thanks and best wishes,
Scarlett
------------------------------
yi wang
------------------------------
#SPSSStatistics