Thanks to Vince and to Nick Winter for the correction.
Nick
[email protected]
Vince Wiggins, StataCorp
> In reply to a question from Jean Ries <[email protected]>,
> Ricardo Ovaldia
> <[email protected]> writes
>
> > I find that sometimes -discard- does not always work, so I like
> > using -program drop _all- instead.
>
> and Nick Cox <[email protected]> commented further that
>
> > -discard- as I understand it includes -program drop _all-.
>
> That is very close, but the distinction is a bit more subtle.
> -discard- drops
> all "automatically loaded programs" and that means any
> programs defined by any
> ado-file. It does not drop programs defined interactively or
> in do-files.
> -program drop _all- does not distinguish and drops them all.
> It would be
> extremely rare, but neither will drop a program if that
> program is currently
> running, for example if -discard- were a line in the program
> itself or a
> subprogram called by the program.
*
* 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/