Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: -nl- error message


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: -nl- error message
Date   Mon, 08 Aug 2005 19:17:24 -0400

I would guess that the bug is in your code and not in Stata, but I can't
tell from the snippet provided.  All I can tell is that, given that `j'
evaluates to 1, Stata did not find a global macro named ${`1'} so it left a
blank there when it ran your code.

Michael Blasnik
[email protected]

----- Original Message ----- 
From: "Terra Curtis" <[email protected]>
To: <[email protected]>
Sent: Monday, August 08, 2005 11:02 AM
Subject: RE: st: -nl- error message


> So I ran my code after setting trace on ('set trace on') and I think I may
> have found a bug in STATA itself.  I saved the trace as a log file and the
> part concerning the invalid syntax appears here:
>
> Iteration 0:    - if "`trace'"!="" { noi di }
>   = if ""!="" { noi di }
>   - }
>   - local j 1
>   - while `j' <= `np' {
>   = while 1 <= 23 {
>   - local old_pj = ${``j''}
>   = local old_pj =
> invalid syntax
>
> It appears that the problem lies deeper than in my .do file.  The last
line
> before "invalid syntax" shold report that old_pj equals 1 (i.e. = local
> old_pj = 1).  Any ideas if this is a bug, and if so, how to go about
fixing
> it?
>
> Thanks,
> Terra


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index