Dear Statalist,

I am facing problem in decoding string variable. For example, the following command has been called to recode.

recode Var=1 if var1== 1-2.

because my variable is in string format which is attached here. When I tried using the above said command i have got a "type mismatch" error. So kindly can anyone help me to solve the problem.

Array