Thanks SASKiwi - when I convert evrprdttm below from datetime20 to date9, I get lines and lines of the error message pasted just below it. In proc contents, the format converts successfully to date9 but in the data, the datetime July 3, 2020 6:15 ends up being in exponential form and the subtraction doesn't work. If you have any ideas for why I keep getting this error, would greatly appreciate the help. data hcuant; set more.hcu;
format evrprdttm date9.;
days=intck('day', datepart(evrprdttm), datepart(adate));
run; ERROR: There was a problem with the format so BEST. was used.
... View more