[quote="Gutnre"]look into automatic recode for the party.
Thank you for your answer!
It is a possible solution. Although, I need that the consecutive party id begins with each country.
I mean, there are groups by country and I need to create a party id within groups (the number of cases begin in each country).
Besides, I have a very long database and is unefficient to use de if command for each country.
I have been thinking in using a loop, but I don´t know how.
Have you got any suggestion?
Thank you very very much!