Hi all, I have a list of Datetime values (e.g. 02JAN1970:01:00:02) that I want to convert into numerical having the following format: 19700102
I have wrote the following code, but it ends up showing a list of dots instead of the actual dates.
data table_2;
set table_1;
day_p = datepart(day_p);
format day_p yymmddn8.;
run;
data table_3;
set table_2;
day_p = input(put(input(day_p,date9.),yymmddn8.),8.);
format day_p 8.;
run;
May anyone help me in solving this issue?
Thank you in advance