I intend to use the `temp' file in multiple DO files, however, the file vanishes as the first do file concludes.
I tried the following commands and variation of it, but all in vain.
tempfile main
save `main',emptyok
global main `main'
use $main
Do1.do
clear
use $mian
Do2.do
clear
Can someone help me out on how to save the temporary file in a global macro rather than a local.
Thanks
Related Posts with global temporary dataset for interactive use in multiple DO file
Regressing on two years backHi all, until now I have estimated intercepts and coefficients "asking" STATA to do it for each diff…
Technical Issues with STATAI want to know if anyone is having the same problem as I do. Every time I paste my data on STATA, it…
New package: simulate2 and psimulate2Thanks to Kit Baum a new package is available on SSC. simulate2 and psimulate2 enhance and parallali…
How to do a graph like this one in StataDear Statalist, I am trying do replicate (with my own data) a graph like the one I show below. As y…
Significant interaction term in fixed effects modelDear all, I am currently running linear fixed effects regression models (xtreg, fe vce(cluster id)) …
Subscribe to:
Post Comments (Atom)
0 Response to global temporary dataset for interactive use in multiple DO file
Post a Comment