Every statement begins with a command name.
Exceptions:
X=Y; ? implicit GENR
X(I)=Y(I); ? implicit SET
100 <statement>; ? statement label for GOTO
The command name may be abbreviated, as long as it is uniquely identified.
Many statements can have options specified in parentheses after the command name. Option names may be abbreviated, like command names. There are three kinds of options:
Boolean options, either on or off. On is specified by the name of the option, as in PRINT, and off is specified by the option name with NO in front of it, as in NOPRINT.
Options of the form option name = option value. The value may be the name of a variable, a numerical value, or just a keyword, depending on the context.
Options which give lists of variables, and are of the form option name = (list of variables). Note that the parentheses are required, unless the list contains only one name, or the list is a listname.
A few commands can be followed by an algebraic formula: GENR, SET, SMPLIF, SELECT, FRML, IDENT, IF, GOTO.
Most commands are followed by one or more series names, separated by commas or spaces. These series names may include lags. An implicit list (such as X1-X5) can be used directly in a statement without making an intermediate listname. See the LIST command for a complete description of implicit list syntax.
The end of a statement is marked by a semicolon (;) or dollar sign ($).