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.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 1595 views
  • 0 likes
  • 3 in conversation