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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: run stata in a batch mode using do file


From   "Dimitriy V. Masterov" <dvmaster@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: run stata in a batch mode using do file
Date   Mon, 17 Sep 2012 14:57:56 -0700

Batch processing is the execution of a series of programs on a
computer without manual intervention. You want batch with a manual
intervention, which is hard to comprehend.

Presumably, you somehow want to pass these paremeters to mylog.do. One
way to accomplish this would be to write a Stata command that takes
firm and date as parameters. Why doesn't that work?

DVM

On Mon, Sep 17, 2012 at 11:39 AM, tashi lama <ltashi32@hotmail.com> wrote:
>
> Hello all,
>     1. It is very well documented to run stata in a batch using do file without parameters. But running stata in a batch using do file with parameters in nowhere to be seen. Any idea how to do it?
>
> In Unix would be if I have dofile mylog with two arguments firm and date
>
> $ stata -b do mylog.do `firm' `date'
>
> What would be in windows for a dofile myjob with 2 arguments firm and date. The following is for myjob without any parameters as documented.
>
>  C:\data> "C:\Program Files\Stata12\Stata" /s do myjob    where myjob is dofile and produces myjob.log in C:\data
>
>    2. How would you run stata in a batch mode using ado file in both unix and windows.
>
> Say I have a myjob.ado with 2 arguments as options namely firm and date
>
> Any help will be highly appreciated.
> Thanks,
> Tashi
> *
> *   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/


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