Hello everyone, I had a question. How can I go about merging multiple datasets, but only IDs that are found in each dataset? Like if ID #1 is found in A, B, and C, and ID #2 is only found in A, the merged dataset should only return ID#1.
data want;
merge a(in=in1) b(in=in2) c(in=in3);
by id;
if in1 and in2 and in3;
run;
View solution in original post
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.