I have an imported dataset from excel where all dates assumed the mmddyy10. format. I noticed in a proc freq there is an observation with a date that is an obvious error I would like to fix (as it predates the observation window).
Is there a way to find the observation with the date value I am looking for? A proc print that would work for normal numeric values does not work in this case.
proc print data=a;
where date=09/01/1920;
run;
I ultimately need to change the year of this date, but that hasn't worked either.
data b;
set a;
if date=09/01/1920 then date2=09/01/2020;
else date2=date;
run;
Thanks in advance.