So the Freq table shows what happened with your merge.
ANNUAL 8,461 BOTH 12,650 EXECCOMP 696 Total 21,807
For example it is showing that there were 696 observations from the executive comp table that did not match the annual table.
For each individual observation you can reference the SOURCE variable you created to see whether it got information from ANNUAL , EXECCOMP or BOTH.
@Tom The source variable is very helpful. How can I tell SAS that I only want to keep rows with "BOTH" in the source variable?
Thanks!
By original file do you mean the original csv that I imported? I think I messed up my data . . . should I start with a clean program?
Yes. I think that would be a good idea!
Art, CEO, AnalystFinder.com
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.