The safer option here is -destring-. -real()- 
is dangerous if your ids are not all what you think 
they should be. 
Nick 
[email protected] 
[email protected]
 
> one suggestion:  the variables need to be consistent in terms of
> characater vs. numeric.  i suggest you make both variables 
> numeric; you
> can change the character one to numeric via -destring- or the string
> function -real- (see appropriate help files).  of course, if you have
> leading zeros in your character variable, you may need to do some
> additional manipulation.  
*
*   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/