HELP!!!

Hi, I want to create a dummy from the second dummy variable which is 1 or 2 in case the code is repeated I want that observation which is 1 or 2 to become a 1 in my new variable

CODIGO var x new var challengue

1233xxxx345 2 . C0001
1233xxxx345 1 1 C0001

I want to create a variable that can contain that observation in a 1


* Example generated by -dataex-. To install: ssc install dataex
clear
input str11 ruc byte usuario

"A024xxxx542" 2
"A024xxxx542" 1
"A025xxxx735" 2
"A025xxxx204" 2
"A025xxxx713" 2
"A029xxxx471" 1
"A029xxxx471" 2
"A029xxxx342" 2
"A029xxxx796" 2
end
label values usuario usuario
label def usuario 1 "Solicitante", modify
label def usuario 2 "Participante", modify
[/CODE]
------------------ copy up to and including the previous line ------------------

Listed 100 out of 1480 observations
Use the count() option to list more