Stata can store all globals in a macro via "local globals: all globals"
It can also print all globals and locals via "macro dir" (locals are globals that start with "_").
However, I am struggling to find a way it can list all locals and store them in a variable, similar to ":all globals" (":all locals" and ':all globals "_*"' did not work).
It can also print all globals and locals via "macro dir" (locals are globals that start with "_").
However, I am struggling to find a way it can list all locals and store them in a variable, similar to ":all globals" (":all locals" and ':all globals "_*"' did not work).
Comment