> I suggest that any test be in terms of the first three
> characters of the string equivalent.
>
> list if string(cropcode) != substr(string(varcode,1,3))
Better as
list if string(cropcode) != substr(string(varcode),1,3)
>
> More generally, whenever codes are pseudo-numeric, there
> are several advantages to holding them as strings.
Nick
[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/