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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!