I would like to merge three datasets A, B, and C to find all the obs in A that do not match B and C. B and C are both subsets of A. Obs in B and C do not match each other.
I have tried the code below and many other logic test, but I cannot seem to get the right output. Any help would be appreciated.
data want;
merge A(in= inA) B(in=inB) C(in=inC);
by id date;
if not inA or (not inB and not inC) then
output want;
run;