> 
> Perhaps something like the following....
> 
> gen new_id = real(subinstr(ID, " ","", . )
> 
Typo error noticed (after reading David's post) above should be 
gen new_id = real(subinstr(ID, " ", "", .))
Sorry for the error,
Neil
Neil Shephard
Genetics Statistician
ARC Epidemiology Unit, University of Manchester
[email protected]
[email protected]
"If your result needs a statistician then you should design a better experiment" - 
Ernest Rutherford
*
*   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/