Thanks for that Tom. I tried the data step and it worked, without an error. For the case when I used a file with a version before 4, the field wasn't created, but it didn't error. I combined it with your suggestion for the proc sql and used an IF statement, and it populated a missing value. Thanks so much for helping me! @Tom Thanks again for everyone else for your help too @Reeza @Kurt_Bremser
... View more