New_id Old_id
1
2 1
3
New_id Old_id Updated_Id
1 2
2 1 2
3 3
Need help in updating the new_id when there is an old id exists. In the above case New_Id "2" has old_id "1". So the updated_id is "2" for the new_ids "1" and "2".
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.