Fred,
If all your ids are 9 chars wide and begining with a capital C, to deleting
everything else than the id, you can try :
gen apatkey2=""
replace apatkey2= substr(apatkey,strpos(apatkey,"C"), 9)
Hope this helps,
N
-------
Nicolas Couderc
Centre d�Economie de la Sorbonne, TEAM & CNRS
Maison des Sciences Economiques,
Universit� Paris 1 - Panth�on-Sorbonne
106-112, boulevard de l'H�pital
F-75647, Paris, Cedex 13
--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.
*
* 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/