Hi all,
I am trying to do some code over a selection of variables in a dataset. So i wanted to create a local variable with all variables, and then loop over all varialbes by calling up that local. But it doesn't work. any suggestions?
Thanks, Sandra
des _begin-_end, varlist
return list varlist
foreach var of local varlist{
di `var'
}
I am trying to do some code over a selection of variables in a dataset. So i wanted to create a local variable with all variables, and then loop over all varialbes by calling up that local. But it doesn't work. any suggestions?
Thanks, Sandra
des _begin-_end, varlist
return list varlist
foreach var of local varlist{
di `var'
}
Comment