Hi all,
I'm having some issues with the below code and datasets. I am trying to use a proc sql left join to bring the two datasets together with a new variable, but when I do it adds an extra two from the second dataset instead of only joining to the two already existing in the first dataset. Code and pictures of the three datasets in order below. Thank you in advance for the help!
proc sql; create table eligs as select
a. * ,
b. x_dupIPelig label = "Match with other Elig" as eligIP_flag
from eligIP2 a left join eligIPdups b
on a.screener_ID = b.screener_ID;
quit;
eligIP2:

Eligipdups:

Eligs(Created dataset):
