Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have two data sets. How do I do a Matched Merge and output consisting of variables in file1 but not in file2, or in file2 but not in file1 (id–4 5 6 7)?

0
Posted

I have two data sets. How do I do a Matched Merge and output consisting of variables in file1 but not in file2, or in file2 but not in file1 (id–4 5 6 7)?

0

data in_both; merge file1(in=infile1) file2(in=infile2); by var; if infile1 ne infile2; run; Output: 4 bob 5 sandy 6 NJ 7 NC

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123