Union All will include duplicates. Union will remove duplicates:
proc sql; create table table1 as select obs2,obs4 from table2 union select obs2,obs4 from table3 union select obs2,obs4 from table4;
Join the 2025 SAS Hackathon!
Calling all data scientists and open-source enthusiasts! Want to solve real problems that impact your company or the world? Register to hack by August 31st!