Thanks to everybody for solutions. The one from
Shannon and Nick was most efficient. One last issue,
though, is that a value is assigned even when the
original string variable is missing. Fixed this with a
regular old _for_. Or is there a more elegant
solution? Forgot to mention, I'm still using version 7
but all y'all seem to have figured that out.
Kate
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com
*
* 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/