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: exact row in which error occurs


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: exact row in which error occurs
Date   Thu, 24 Nov 2011 11:28:11 +0000

Stata doesn't work in this way, partly because do-files can and
usually do call other do-files, ado-files, commands, functions, etc.,
and a row number -- presumably meaning file line number -- would not
have very much meaning in many instances, and/or would refer to a line
in code that is proprietary and so hidden from you.

-set trace- leads to ways of detecting where errors occur. Otherwise
the difference between -do- and -run- is important here.

Nick

On Thu, Nov 24, 2011 at 11:07 AM, Ivica Rubil <[email protected]> wrote:

> does anybody of you know if there is a way to get Stata give me the the
> exact row number where an error occurs in a do file? I'm surprised that
> Stata -- way too "smart" a program -- does not give it regularly,
> included in error messages.
*
*   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