Hello,
I would like to generate new variables take take the value of 0 for each of words in a list. The below code does not give any error, but it also does not produce any variables. Does anyone see what I'm doing wrong? Thank you very much.
local wordlist "specialist manager sales engineer assistant accounting"
foreach var in `wordist'{
g my`var'=0
}
I would like to generate new variables take take the value of 0 for each of words in a list. The below code does not give any error, but it also does not produce any variables. Does anyone see what I'm doing wrong? Thank you very much.
local wordlist "specialist manager sales engineer assistant accounting"
foreach var in `wordist'{
g my`var'=0
}
Comment