On Fri, Mar 13, 2009 at 4:41 PM, Martin Weiss <[email protected]> wrote:
> program drop prog1
>
> HTH
> Martin
And if you are writing a do-file which defines a program put the following line:
capture program drop prog1
before you write:
program define prog1
This will erase (drop) the program from Stata memory only if it is
currently there, otherwise nothing happens
Best regards, Sergiy
> _______________
> ----- Original Message ----- From: <[email protected]>
> To: <[email protected]>
> Sent: Friday, March 13, 2009 9:40 PM
> Subject: st: How to Erase Program
>
>
>> How do you erase a program in Stata. I tried -erase prog1- and it did
>> not work, and I cannot seem to figure it out. Thanks!
>>
>> Jessica Cannon
>> [email protected]
>>
>> *
>> * For searches and help try:
>> * http://www.stata.com/help.cgi?search
>> * http://www.stata.com/support/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/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/statalist/faq
* http://www.ats.ucla.edu/stat/stata/