Dear listers,
I have a large file containing a date of birth variable coded "ddmmyyyy"
without any separator. User's manual on page 306 suggests a solution for a
similar case. However there should be some way to insert characters at a
fixed position into a string (i.e. a "/" after the second and the fourth
character) or to generate three new substrings containing day, month, and
year respectively again based on the fixed position of day, month, and year
in the string... probably I just overlooked it. Many thanks for your help.
best regards
Fabrizio Stracci
===================================================================
Fabrizio Stracci
Dept. Hygiene and Public Health, University of Perugia
Umbrian Population Cancer Registry
Via del Giochetto
06100 Perugia, Italy
Tel. (+39) 075 585 7366
Fax (+39) 075 585 7317
e-mail [email protected]
====================================================================
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/