SAS Syntax - Overview

GLM supports two general syntax conventions: The GLM (STATISTICA) syntax is a modern, easy to use, and comprehensive design specification language based on meaningful plain English language command sequences of the form Keyword = Specifications (see the description of keywords and specifications on the Keywords tab and Specifications tab). This flexible command syntax allows you to use the full functionality of GLM.

The other type of syntax convention, SAS, is based on the still popular SAS command syntax, which dates back to the early 1970s and was originally designed for mainframe computers. Support for the SAS command syntax is provided here for compatibility purposes, to facilitate the transition from the SAS system, and for accommodating those who want to use published examples. Note that using this syntax convention will not give you full access to all features available in GLM since many of them are not supported in the respective SAS procedures.

The SAS syntax consists of command lines, which are terminated by semicolons. The complete command syntax supported in GLM is shown below. Note that terms in curly brackets ({}) denote alternate specifications; optional keywords are enclosed in brackets ([]); all keywords are shown in upper case letters (even thought the syntax interpreter is not case sensitive). Default options or specifications are shown in italic font (e.g., INTERCEPT).

[GLM;]

[CLASS    Categorical predictor variable list;]
MODEL {  Dependent var. list } = { Effects }
  [/    [ { NOINT } { INT } { INTERCEPT }
        [ { SS1 } { SS2 } { SS3 } { SS4 } ]
        [ SINGULAR = Value] ];
[RANDOM       { Class Variable List };]
[REPEATED       { FactorName Levels
  .......
          FactorName Levels };]

See also the SAS Syntax Examples for additional details.