Three way exit from a Stata session

exi3 is intended to close the active Stata session. It checks if there are any unsaved changes to the dataset currently in memory and asks the user if the changes need to be saved or can be discarded. The third option (Cancel) cancels the exit operation and allows the user to stay in the active Stata session.

If the current dataset has never been saved, and the user selects that the changes need to be saved the program will ask for a filename to save changes:

If the user enters an invalid file name, non-existing path, path to a protected directory, or under other conditions where the dataset is not saved, exi3 will not close the Stata session and will abort with an error.

NB: the program does not prevent the handling of changes to the do-files in the editor and other Stata elements to be saved.

Installation

Stata 9 or later (any flavor/platform) is required to install this command.

To install, type

  net from http://radyakin.org/statalist/2013080602/ 

then click on the package name and follow installation instructions. The command can only be downloaded from within Stata and not with your browser.

Sergiy Radyakin, 2013/08/06