I'm trying to create a table using a sql procedure with a column in date9
format, however, despite the put function I use with the date9
parameter, my column is created in string format, even though I have no error indicated in the log.
Here is what my code looks like:
rsubmit;
proc sql;
create table temp as (
select put(intnx('month', datepart(MyDateTimeColumn), -1, 'e'),date9.) as FormatedDate
from MyTable
);
quit;
endrsubmit;
Could you please help me?
Thanks in advance,
AZ