Hi All,
I am stuck in a situation. I have data(Date) type is number and format is DATE9
example-
Employee Hire Date
12MAR1985
12MAR1985 is number in Date9 format.
I want it to convert into String or Character. So that I can use it in my way.
Please help me on this one.
Thanks!
Anmol
HireDate_CHAR = put(hiredate, yymmdd8.);
The format in purple is what controls the appearance. You can change the format to get different outputs if desired.
Hi,
can you provide me the exact code. I am new to SAS. My table name is EmpData, variable is HireDate(Number->DateFormat9).
I want to change HireData into character or string.
Thanks.
HireDate_CHAR = put(hiredate, yymmdd8.);
The format in purple is what controls the appearance. You can change the format to get different outputs if desired.
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →