SAS typically stores datetimes as the number of seconds from January 1, 1960. In Base SAS you would use DATEPART to extract the date protion of the variable and then subtract the two variables. You likely need something similar in VA.
I would use COALESCE in SAS VA to test the missing and assign it to the value you expect or want.
... View more