Hello . I selecting the excell file. then import the following code in stata
gen area=substr( ADDRESS, 1, 1)
It is correct for all my files
but In one case, the following error is given
type mismatch
r(109);

What is your problem?
Thanks for help.