BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Tom
Super User Tom
Super User

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.

sastuck
Pyrite | Level 9

@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!

sastuck
Pyrite | Level 9

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?

art297
Opal | Level 21

Yes. I think that would be a good idea!

 

Art, CEO, AnalystFinder.com

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 18 replies
  • 44822 views
  • 4 likes
  • 4 in conversation