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 from master file (id–1, 2, 3, 4, 5)?

0
10 Posted

I have two data sets. How do I do a Matched Merge and output consisting of variables from master file (id–1, 2, 3, 4, 5)?

0
10

data in_both; merge file1(in=a) file2(in=b); by var; if a; run; proc print; run; Output: 1 john MD 2 joe NY 3 bill VA 4 bob 5 sandy

Related Questions

What is your question?

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

Experts123