[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: uknown error: r(9611)
Edward F. Blackburne (email@example.com) asked about error code 9611:
> I have been working on a file and this morning received an error that I do
> not understand and Stata help has no information.
> after a program drop _all
> I called my program. Here is the results screen:
> xtpmg d.c d.pi d.y, lr(l.c pi y)
> (error occurred while loading xtpmg.ado)
> I will note that I believe I have an unmatched brace in my code which I am
> currently tracking down, but...
I looked up r(9611) in the source code. It is related to a -while- loop.
To Stata, the contents of a -while- loop are actually a mini program.
That program must be stored in memory so that it can be executed over
and over. Stata assigns an internal name to the contents of each
-while- loop so that it can look that 'program' up later to execute it.
r(9611) only occurs if Stata is unable to look up the -while- 'program'
that it thinks it just read in from an ado-file. Given that Edward
believes he has an unmatched brace in his code, I suspect that this
is what is causing the problem.
Edward can use the brace-matching feature of an editor like
Stata's Do-file Editor or vi to help find the missing brace.
* For searches and help try: