Check the condition by using If statement in the Merge statement while merging datasets.
data MRG; merge data A(in=A) dat B(in=B); if A=1 and B=1; by<common column>; run;
Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!