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

st: invalid -syntax- when moving the option-bracket


From   "Daniel Mueller" <d.mueller@agrar.hu-berlin.de>
To   "Statalist" <statalist@hsphsun2.harvard.edu>
Subject   st: invalid -syntax- when moving the option-bracket
Date   Sun, 10 Aug 2003 14:09:57 +0200

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/



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