I want to compare the id is it same or not by comparing them in a same row. And I tried this data step, Can someone help me : data temp; input id $ var1 var2; New_id= id; datalines; aa 12 13 Bb 13 14 Cc 15 16 ; data want : id var1 var2 new id aa 12 13 Bb 13 14 aa Cc 15 16 Bb
... View more