Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: forced end of do-file

From   "Hoogeboom Thomas (EPID)" <>
To   "" <>
Subject   st: forced end of do-file
Date   Wed, 23 Nov 2011 12:01:33 +0100

Dear all,

Hopefully someone can help me with this silly little thing.
I’ve searched the archive, Google and STATA-website, unfortunately I did not find a solution.

The problem:
When I run a do-file by use of "do selected lines" (lets say the do-file consist of 100 lines) and I run for instance only the first 25 lines of the do-file; for some reason STATA ends the selected lines with "end of do-file" (STATA didn't use to do this). I don't want STATA to end my do-files for me, as this doesn't allow me to continue working on the edited dataset.
I've read STATA does this automatically when you use commands such as -preserve and -restore, but it does this also when I don't use these commands in my syntax.

An undesirable solution:
Coping and pasting the first 25 lines straight into STATA.

Hopefully someone can help me with this. :-)
I think it must be something easy as telling STATA in the beginning of the DO-file to not end it, but I can't seem to find this command..

Kind regards,

Thomas Hoogeboom,
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index