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.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!