Hi,
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,
Daniel
*
* 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/