Hello,

I've been trying to synchronize value labels from multiple surveys. I first decoded all numeric variable using the "decode" command, giving me a set of variables beginning with "s_".

I am using "multencode" to re-create numeric variables that I had "decoded". The code below works to loop through all the variables that begin with "s_" (the string variables).

Code:
set more off
foreach v of var s_*{
            multencode `v', gen(E`v')
        }
I want to be able to modify the gen(E`v') to give me back the original variable names, without the "E_" prefixes.

I would appreciate some help in fixing this code.

thanks - Yy