Hi all, I have a question in regards to sequencing in SAS. I have a large dataset of dates of birth that I would like to assign unique identifiers to, since they did not come with one. If there are two cells in a row that have the same date of birth, they are the same person and should have the same unique ID. Below is an example of what I would like my dataset to look like: DOB ID 9/9/2000 1 9/9/2000 1 8/11/1993 2 7/7/1987 3 7/7/1987 3 7/7/1987 3 2/28/2001 4 2/28/2001 4 10/18/1967 5 I'm just not sure how to sequence correctly in SAS so if a date of birth is equal directly after another date of birth, that they are assigned the same unique ID. And if the date of birth is different, then a new unique ID is assigned. Thank you for help in advance.
... View more