Hi Statalisters,
I have a basic question. I want to convert variable "srcdate" from numeric to string. However, because this numeric variable is text-form without any value label, so I cannot use -decode- and -tostring- code. Does anyone have a more decent solution?
Thanks in advanced.
I have a basic question. I want to convert variable "srcdate" from numeric to string. However, because this numeric variable is text-form without any value label, so I cannot use -decode- and -tostring- code. Does anyone have a more decent solution?
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long srcdate 19358 21549 21184 18382 19358 18627 18992 18474 18839 21549 end format %d srcdate
Comment