as far as I understood the problem, you did not create string variables.
if it is just a cross-sectional data set, you could generate a simple
index as identifier:
gen x = _n
jo
>sacrificial lamb
>
>Natalie wrote
>
>I have actually created a new variable country to distinguish the
>firms before appending, I am wondering if it is possible to create a
>new variable combining the information of "code" and "country", so
>that the observations can be distinguished by one variable? Thanks
>alot.
>
>This is a FAQ.
>
>gen idcode = country + string(code)
>
>If you want a fixed length code (assuming countrycode is of fixed
>length, e.g. ISO) then use string(code,"%9.0f") or something like that.
___________________
Johannes Geyer
Deutsches Institut f�r Wirtschaftsforschung (DIW Berlin)
German Institute for Economic Research
Graduate Center
Koenigin-Luise-Stra�e 5
14195 Berlin, Germany
Tel: +49-30-89789-258
*
* 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/