data test1;
input id $ marks1 ;
datalines;
a1 10
a2 20
a3 30
a4 40
a7 70
a8 80
a9 90
a10 100
;
data test2;
input id $ marks2;
datalines;
a1 10
a2 20
a3 30
a4 40
a5 50
a6 60
a7 70
a8 80
a9 90
a10 100
;
proc sort data=test1;
by id;
proc sort data=test2;
by id;
data merge1;
merge test1 test2;
by id;
the current result is the following
But I just want to show the output contain in test two but missing in test one by id
the following is the result I desire:
a5 50
a6 60
please help! I can't find similar examples in my lecture notes ,wanna cry