@Astounding wrote: Have you tried ANYDTDTE9. ? When the date contains 9 characters but your informat only reads 7 characters, expect the results to be unusual.
I tried it and fails. But interestingly enough
data want;
given_date='Jan-20-2019';
date = input(given_date,anydtdte11.);
format date date9.;
run;
seems to work just fine. Yet another reason NOT to use 2 digit years.
BTW
data want;
given_date='Jan-20-2019';
date = input(given_date,anydtdte.);
format date date9.;
run;
Fails as well.
... View more