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;
Catch up on SAS Innovate 2026
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.