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: Can I run Stata commands in background?
From
Phil Schumm <[email protected]>
To
[email protected]
Subject
Re: st: Can I run Stata commands in background?
Date
Wed, 25 May 2011 08:27:35 -0500
On May 24, 2011, at 4:22 PM, Nobuaki Michihata wrote:
I'm looking for the way to run Stata commands in background. I
found the following article, but I would like to do it within Stata.
http://www.stata.com/support/faqs/mac/advanced8.html#batch
I mean I would like to run two different programs (commands) at
once, not in order. In Bash, we can do so using "&".
If what you're asking is whether you can do something like
. <first command> &
. <second command>
at the Stata prompt -- where the second command would begin executing
before the first has finished -- the answer is no. If you find
yourself spending a lot of time waiting for commands to finish (e.g.,
because you are working with very large datasets and/or are doing very
computationally-intensive analyses), then you probably need to
structure your work differently (or, depending on the situation,
perhaps consider a hardware upgrade and/or Stata/MP). For example,
you can break different tasks into separate do-files, and then run
these as separate processes in your OS.
-- Phil
*
* 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/