[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: invalid -syntax- when moving the option-bracket
I am writing a program with several options and I am apparently missing something obvious in writing the -syntax-.
The sytnax looks like:
syntax [varlist(num)] , opt1(varname) opt2(int) opt3(int) ///
opt4(int) [ opt5(varname) otheropt SAVing(str) REPLACE ]
This program works.
However, if I move the options-bracket -[- forward, Stata immediately gives me an -invalid syntax-error when I run the
program without executing one line of code (at least -set trace on- doesn't show any executed code). E.g., the following
does not work (-[- moved forward, now between opt1 and opt2):
syntax [varlist(num)] , opt1(varname) [ opt2(int) opt3(int) ///
opt4(int) opt5(varname) otheropt SAVing(str) REPLACE ]
Where could my mistake be hidden?
Thanks in advance, rgds,
* For searches and help try: