☑ This topic is solved.
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 07-08-2024 11:26 AM
(426 views)
Hello everyone, I had a question. How can I go about merging multiple datasets, but only IDs that are found in each dataset? Like if ID #1 is found in A, B, and C, and ID #2 is only found in A, the merged dataset should only return ID#1.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
data want;
merge a(in=in1) b(in=in2) c(in=in3);
by id;
if in1 and in2 and in3;
run;
--
Paige Miller
Paige Miller
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
data want;
merge a(in=in1) b(in=in2) c(in=in3);
by id;
if in1 and in2 and in3;
run;
--
Paige Miller
Paige Miller