And because column B exists in both source tables you need to rename it for the target table as there can't be two columns with the same name in the same table. Below @Kurt_Bremser 's SQL amended accordingly.
proc sql;
create table want as
select
T1.A,
T1.B as T1_B,
T2.B as T2_B
from T1 left join T2
on T1.A = T2.A
;
quit;
Register Today!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.