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: Printing nested do-files


From   Sergiy Radyakin <serjradyakin@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Printing nested do-files
Date   Thu, 20 Jun 2013 08:05:56 -0400

No, there is no such facility and for a good reason. In general a
large do file is not equivalent to a set of smaller do files because
each of them is in its own _namespace_. Printing them as one large do
file might mislead the user. Besides, the decision to call a
subsequent do file or not may be data-dependent. In that case it is
not possible to find the whole code that's running without actually
running it. -set trace on- is doing just that.
Sergiy

On Thu, Jun 20, 2013 at 2:49 AM, M. Langelaan <m.langelaan@nivel.nl> wrote:
> Hello,
>
> I have  one calling do-file that starts several other do-files. Does anyone
> know if it is possible to print the complete to file, without the results
> (so not a normal log-file, do-file text only).
>
> Thanks in advance!
>
> Maaike
>
>
>
> --
> View this message in context: http://statalist.1588530.n2.nabble.com/Printing-nested-do-files-tp7580383.html
> Sent from the Statalist mailing list archive at Nabble.com.
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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