Your log will likely have errors as well.
Convert your dates to SAS dates first, using INPUT() to create a variable with a numeric type and date format.
Then you can do your calculations. Post back with any further issues.
It would help if you provided some sample data (as text) with your code that could be tested, otherwise we’re guessing at best.
And if there are errors/warnings in the log, include the full log.
... View more