Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Nostop in do files


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Nostop in do files
Date   Fri, 22 Oct 2010 12:38:47 +0100 (BST)

--- On Fri, 22/10/10, Katia Bobulova wrote:
> The link to the solution that I mentioned is this one:
> 
> http://www.stata.com/statalist/archive/2004-02/msg00140.html

I agree with Nick, that the -nostop- option is a very dangerous
option, and I would not use it. -capture- is the much much much
saver alternative.
 
> I opened my data and my do file. Usually I click on the
> button for the do file. I tried to type do myfyle, nostop
> 
> but I receive an error message: fyle myfile.do not found
> 
> what I am doing wrong?

It means that the file "myfile.do" does not exist in your
current directory.

The way to do this is to create a .do file that does 
whatever you want to do, and store that .do file. This 
means that it has a name and is located in some directory.
Use -cd- to change your current directory to that directory.
Than use -do myfile.do, nostop- to run your .do file. 
However, the part -myfile.do- should ofcourse be replaced by
the name you used to for your .do file. However, I repeat
my earlier point that you should not use the -nostop- 
option, it is dangerous.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index