Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: wishlist
From
Joe Canner <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: wishlist
Date
Tue, 6 Aug 2013 22:20:27 +0000
If nothing else, such a program has the advantage of having a memorable name... :-)
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
Sent: Tuesday, August 06, 2013 6:02 PM
To: [email protected]
Subject: Re: st: wishlist
Presumably this happens if you type
exit, clear
but realise that you didn't mean it. Faced with your mild curses, Stata (if it could engage in repartee) would then merely quip that it did what you asked.
I guess you want a command rather than a do-file. Is this something like the command?
program sexit
version 8.2
save, replace
exit
end
It's deliberate that this fails if there is no data in memory because then it fails to do what is intended, -save- data and -exit-.
Nick
[email protected]
On 6 August 2013 22:39, Lachenbruch, Peter <[email protected]> wrote:
> I have a small request (which never is?) When I exit Stata I have
> often forgotten to save my changes - I have the chance to lose my changes or go back (click no). I'd like a third option - save changes and exit. It should be an easy do file...
>
>
> Peter A. Lachenbruch,
> Professor (retired)
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/