data storm_new;
set pg1.storm_damage;
drop Summary;
YearsPassed=yrdif(Date, today(), "age");
Anniversary=mdy(month(Date), day(Date), year(today()));
format YearPassed 4.1 Date Anniversary mmddyy10.;
format Cost dollar20. YearPassed 4.;
run;
YearPassed 4. didn't work.
Still it shows like this "
I don't know why "YearPassed 4." didn't work in the statement. Please help me.