This is a pretty basic question, but I'm a teaching assistant for econometrics right now and a student asked me about it, reminding me that I had never figured it out myself.
The students are given specific instructions to save their do-files with a line at the end of the do-file reading something like:
save "$datadir\saving do-files.do", replace
However, on Macs (at least for several people, including me), once this saved do-file is re-opened, it is empty except for one line of gibberish:
<stata_dta><header><release>117</release><byteorder>LSF</byteorder><K>
That's an exact quote, and there's nothing else in it. This happens no matter whether I use the $datadir global macro or write in the whole pathway. I've been trying to find instructions or solutions and can't find anything.
Any help would be greatly appreciated! Is it possible that this line just doesn't work in Macs? Is there another way to include a save command within the do-file?
Thanks,
Kristen
The students are given specific instructions to save their do-files with a line at the end of the do-file reading something like:
save "$datadir\saving do-files.do", replace
However, on Macs (at least for several people, including me), once this saved do-file is re-opened, it is empty except for one line of gibberish:
<stata_dta><header><release>117</release><byteorder>LSF</byteorder><K>
That's an exact quote, and there's nothing else in it. This happens no matter whether I use the $datadir global macro or write in the whole pathway. I've been trying to find instructions or solutions and can't find anything.
Any help would be greatly appreciated! Is it possible that this line just doesn't work in Macs? Is there another way to include a save command within the do-file?
Thanks,
Kristen
Comment