Bookmark and Share

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: Run a do file but see output


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Run a do file but see output
Date   Wed, 4 Aug 2010 10:44:35 +0000 (GMT)

--- On Wed, 4/8/10, Allan Reese (Cefas) wrote:
> I've always used -do filename- for little command files.  Having written
> a large file (mainly mata) that gets modified incrementally, I would
> like to run it without the commands filling the results screen every
> time.  So for the first time ever, I tried -run- but
> don't get any output! 

I would stick the mata code inside a mata function and store that in 
a separate .do file, than in the remaining .do file I would add the
lines

run foo.do 
mata foo()

where foo.do is the name of the .do file that creates your mata function
and foo() is the name of the that function.

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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index