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
Gen a variable in a loop: error "variable already defined"Hello everyone. I am trying to run this loop. I need to get two subsamples of frequent and occasion…
WLS = reg + aweights?I would like to understand whether I apply the regression technique "weighted least squares (WLS)" b…
Q-Q plots - why is Tukey Mean-Difference plots not an option in Stata?Q-Q plot combined with Tukey mean-difference plot - re 'Visualizing Data by Cleveland (1993) Dear A…
Prompt for values interactively in do fileDear Statalist, Is there any way to prompt for local variable with pattern i.e. numeric only/alpha …
Combine graphs created with -mlowess-Hello Statalist, is there any option to combine several graphs I created with HTML Code: mlowess ?…
Subscribe to:
Post Comments (Atom)
0 Response to global temporary dataset for interactive use in multiple DO file
Post a Comment