Hi,
I have a sequence of code below...
use "C:\Users\paulf\OneDrive\Stata Data\15-Just Start Here (Raw Data 2013 to Date).dta", clear
gen ddate = daily(date, "DMY")
format ddate %td
egen horseid_nc = concat(horse_nc date)
replace horseid_nc = lower(horseid_nc)
save "C:\Users\paulf\OneDrive\Stata Data\15-Just Start Here (Raw Data 2013 to Date).dta", replace
I have a different .dta open.
I run the .do file
The .do file reaches the code sequence above, then physically opens the .dta referenced in it, over the .dta I actually want open (so I lose that)
My understanding is that whilst 'use' loads the .dta file it references into memory, the .dta remains in the background and does not physically open.
Obviously that is not the case here though.
I have looked in Preferences in the edit menu and found nothing there (Stata 17).
Any information appreciated please. I would like it to remain in the background!
Thank you.
I have a sequence of code below...
use "C:\Users\paulf\OneDrive\Stata Data\15-Just Start Here (Raw Data 2013 to Date).dta", clear
gen ddate = daily(date, "DMY")
format ddate %td
egen horseid_nc = concat(horse_nc date)
replace horseid_nc = lower(horseid_nc)
save "C:\Users\paulf\OneDrive\Stata Data\15-Just Start Here (Raw Data 2013 to Date).dta", replace
I have a different .dta open.
I run the .do file
The .do file reaches the code sequence above, then physically opens the .dta referenced in it, over the .dta I actually want open (so I lose that)
My understanding is that whilst 'use' loads the .dta file it references into memory, the .dta remains in the background and does not physically open.
Obviously that is not the case here though.
I have looked in Preferences in the edit menu and found nothing there (Stata 17).
Any information appreciated please. I would like it to remain in the background!
Thank you.
Comment