For that, change the word MERGE to the word SET.
MERGE is actually a more complex process.
Expect that you will have more than one observation with the exact same NAME when you are done.
In theory, the number of observations in the output could be anywhere from 50 to 54.
Why do you expect 54? What do you expect MERGE to do when the same NAME appears in both data incoming data sets?
For that, change the word MERGE to the word SET.
MERGE is actually a more complex process.
Expect that you will have more than one observation with the exact same NAME when you are done.
If you’re tryimg to add rows it’s an APPEND.
If you’re trying to add columns it’s a MERGE.
READ the SAS chapter on Combining Data.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.