Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: RE: st: tempfile already exists


From   wgould@stata.com (William Gould, StataCorp LP)
To   statalist@hsphsun2.harvard.edu
Subject   Re: RE: st: tempfile already exists
Date   Fri, 31 Aug 2007 10:35:32 -0500

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
wgould@stata.com
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index