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]

st: the convenient way to exclude part of the do file from running


From   Amanda Fu <[email protected]>
To   [email protected]
Subject   st: the convenient way to exclude part of the do file from running
Date   Tue, 20 Apr 2010 11:07:00 -0400

Hi all,

I was wondering if there is any more convenient way to exclude some
part of the do file from running in the process of writing and
revising a do file.

For example, I am working on a do file with 1000 lines of commands, in
which  I would like to exclude  the bottom 100 lines from running  and
checking.  I have not decided if I should permanently delete the 100
lines from this do file or not.

Currently what I deal with this is just using mouse to select the
parts that I want to check and run. When I have to run a couple of
times, this using-mouse-to-select becomes tedious. Another way is to
add * or /* before those excluded lines. I do not like this way since
when finally I want to include these commands, I have to delete those
symbols. Therefore, I would like to find if there is any better way to
exclude some part of the commands from running.

Thanks for your help!

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