@Tom @Ksharp Another question. I added different numbers on VAR1 and noticed that this one gave me an issue: 657899654. This is curious: 1. Using Tom's code it applied the correct ID but it created another record with a round up number of 700000000 with a blank ID. The record that get the ID does not have the data that would be coming from set 2. The extra record does. 2. If I use Ksharp's code, no extra record is created but that specific record does not get the ID, ID is blank and the merging variable number VAR1 is transformed to 700000000. All other variables are in, as they should. It looks like numbers up to 7 digits work fine. I did not try 8 digits, is it safe to say that up to 8 digits it would work fine? Is the issue here that the number is 9 digit? Why do the codes not work for that specific Var1 # ? I can make sure the VAR1 number is not >7 or 8 digit, if that is the issue. I wanted to understand what is happening before moving forward. Why would SAS round up that particular Var 1 value (on both codes) and split the data on 1 and not assign the ID on 2? It did not do the same for any of the other values I entered (up to 7 digits). Thanks.
... View more