Return to Snippet

Revision: 7537
at July 29, 2008 03:32 by retry


Initial Code
STRING date1str (A8).
COMPUTE date1str=CONCAT(STRING(XDATE.YEAR(date1),F4.0),STRING(XDATE.MONTH(date1),N2),STRING(XDATE.MDAY(date1),N2)).

Initial URL

                                

Initial Description
This syntax creates a new STRING variable from a DATE variable in the form CCYYMMDD.

Initial Title
Convert a DATE variable into a STRING variable in the form CCYYMMDD

Initial Tags

                                

Initial Language
Other