Are those two observations in the same dataset? If so then OLD must be a character variable.
What type of variable do you want to create for NEW? Do you want date values that are formatted in that style that saves two characters when printed but will confuse humans into not noticing that they should think of them as dates? Or do you want to store that 8 digit string into a character variable?
Register Today!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.