Bookmark and Share

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   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: wishlist
Date   Tue, 6 Aug 2013 23:02:13 +0100

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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index