Hello,
I am trying to calculate the date difference between 31dec16 and the variable service_dte (which is the start date when an employee joined the company). the format of the variable service_dte is datetime16. and according to SAS it is in numeric value.How should I proceed? since service_dte and '31dec16' are of different format, I tried to convert the format fist, but it is not working. I am currently using SAS 9.4.
this is what i tried:
data trial;
set lwop.data2016;
service_date=input(service_dte,datetime16.);
format service_date date.;
run;
i got the following error message:
Note: invalid argument to function input at line 3815 column. warning:limit set by errors=option reached. further errors of this type will not be printed.
Thank you very much for your help!!