I'm trying to do this in Enterprise Guide, with a task, otherwise I would just use a data step.
In a data step, this would be:
data names;
input name $;
datalines;
John
Mary
Sally
Fred
Paul
;
run;
data check;
input name $;
datalines;
Mary
Fred
;
Proc sort data=names; by name; run;
Proc sort data=check; by name; run;
Data work.not_in_check;
merge names(in=n) check(in=c);
by name;
if n and not c;
run;
Another slight variation is:
Here's one way. There are surely many others.
The following method is pretty simple way to get records present in one table and not in the other.
Created table new with records containing sex = M, the result after the query will be records with sex = F.
Example:
Will put the code to test on my actual datasets which are of around 100k obs and update the result.
P.S: I know the question has been asked answered and forgotten,I was looking for a way to do the above and couldn't find a direct answer any where. So, adding so that it may come handy. :)
My first answer also. :)