I am working with 2 datasets: A and B. Everyone from dataset A is also in dataset B. How can I direct SAS to delete from dataset B everyone who is also in dataset A?
You can use "proc sql" for your purpose,
title 'B EXCEPT A';
select * from sql.b
select * from sql.a;
Try the exists/not exists condition: