Linking Roster Items across Rounds in the NLSY97

SPSS code

compute position2 = 0
if (R1uid2 = R2uid1) position2 = 1
if (R1uid2 = R2uid2) position2 = 2
if (R1uid2 = R2uid3) position2 = 3
if (R1uid2 = R2uid4) position2 = 4
if (R1uid2 = R2uid5) position2 = 5
if (R1uid2 = R2uid6) position2 = 6
if (R1uid2 = R2uid7) position2 = 7
if (R1uid2 = R2uid8) position2 = 8
if (R1uid2 = R2uid9) position2 = 9
if (R1uid2 = R2uid10) position2 = 10
if (R1uid2 = R2uid11) position2 = 11
if (R1uid2 = R2uid12) position2 = 12
if (R1uid2 = R2uid13) position2 = 13
if (R1uid2 = R2uid14) position2 = 14