🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-20-2019 05:09 AM
(3488 views)
Hello,
I have2 datasets with the same strcuture.
the first holds 945057 rows and the second holds 944820 rows.
I would like to get in an output dataset only rows that are missing in the second dataset.
thanks in avdance for your help
regards
Nasser
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Something like (not tested as nothing to test on):
data want; set have 1 (in=a) have2 (in=b); /* Note I do not know what variables are in each so I cannot put anything in the next row */ by ...; if a and not b; run;
You could also use except in SQL, proc compare with dataset output. Again, without test data in the form of a datastep I can't be anymore specific.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Something like (not tested as nothing to test on):
data want; set have 1 (in=a) have2 (in=b); /* Note I do not know what variables are in each so I cannot put anything in the next row */ by ...; if a and not b; run;
You could also use except in SQL, proc compare with dataset output. Again, without test data in the form of a datastep I can't be anymore specific.