Steven Stillman wrote,
> As an aside to this post, I learned the hard way a few months ago why
> -save `tempfile', replace - should be avoided in most circumstances.
> If the macro tempfile is undefined, say because you have misspelled
> it [...], this reduces to -save, replace- which will overwrite the
> dataset you are working with.
>
> BTW, has statacorp ever thought about altering save so it requires a
> dataset name? [...]
Steven is right about the problem and his suggestion is spot on.
In Stata 11, we will modify Stata so that -save, replace- is no longer
valid syntax except under verison control, and we will introduce new
command -resave- equivalent to the current -save, replace-.
-- Bill
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/