Fred Wolfe
>
>
> Oops the invalid syntax is point to the wrong line
>
> forvalues k = 1 / `catvar`j'_totline' {
> * forvalues k = 1 / $catvar`j'_totline { <-- invalid syntax
> error here
>
> This is correct:
>
> forvalues k = 1 / `catvar`j'_totline' { <-- invalid syntax
> error here
> * forvalues k = 1 / $catvar`j'_totline {
>
This email, and that just before it, passed
my reply to Fred's earlier email somewhere mid-Atlantic.
But I think the analysis remains the same.
Given a left quote ` Stata is going to hold its breath until
it sees a matching right quote ', so long as the length
of the local macro name is legal. There is no exact equivalent
for $ insofar it needs no closing symbol, merely something implying
that the end of the name is reached.
Nick
[email protected]
*
* 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/