BookmarkSubscribeRSS Feed
SASPhile
Quartz | Level 8

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". 

 

2 REPLIES 2
tomrvincent
Rhodochrosite | Level 12
You should explain how 'updated_id' is derived, especially since there isn't any visible connection between a new_id of 1 and an updated_id of 2.
Reeza
Super User
Usually you'd have dates attached to those as well to help define the order.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 758 views
  • 0 likes
  • 3 in conversation