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

If you want to merge then setup your data so that it can be merged.

data want;
  merge a(rename=(age_a=age)) b(rename=(age_b=age)) ;
  by id age;
run;

If you want more precise help then post a workable example of data that demonstrates your problem.

Mscarboncopy
Pyrite | Level 9

Thank you !! I did this and with a few other steps and it worked 🙂 

 

Tom
Super User Tom
Super User

If you merged by ID and AGE and you are getting missmatched records then the value or either ID or AGE do not match.  Perhaps your AGE values have been derived and one of them is 14 but the other is really 13.9999999 and it is just printing as 14.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 17 replies
  • 9722 views
  • 3 likes
  • 6 in conversation