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]

st: displaying input lines while executing loops


From   László Sándor <sandorl@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: displaying input lines while executing loops
Date   Mon, 30 Jul 2012 11:07:30 -0400

Hi all,

I am using Stata MP 11.2 on Windows, and I'd like to come back to the
point of displaying commands (inputs) not just outputs while executing
a loop. (There was a thread on this before:
http://www.stata.com/statalist/archive/2007-11/msg00666.html)

As a diligent follower of Kit Baum's advice (and many others' on this
list), I use loops all the time, not to code up analogous things
twice. But Stata just reporting barebones output does not help with
this. E.g. when I am merging in many-many files (over data sources and
over years), it is hard to keep track of the reports of the merges.

Exactly because I have much code in loops, I would not edit the
commands (in those loops) for this purpose. But is there another way?

Of course, -set trace on- gets me close, but even with -set tracedepth
1- the commands are traced in minute detail instead of just giving me
the command (input).

Thanks for any help with this,

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