How to read the syntax diagrams

Function syntax is described using the structure defined below.
  • Read the syntax diagrams from left to right, from top to bottom, following the path of the line.

    The ►►─── symbol indicates the beginning of a statement.

    The ───► symbol indicates that a statement is continued on the next line.

    The ►─── symbol indicates that a statement is continued from the previous line.

    The ───►◄ symbol indicates the end of a statement.

  • Required items appear on the horizontal line (the main path).
    Figure 1.
    
    1 STATEMENT required_item
  • Optional items appear below the main path.
    Figure 2.
    
    1 STATEMENT ?optional_item
  • If a default value is provided for an item (that is, if no parameter is specified, the default is used), the default item appears above the main path.
    Figure 3.
    
    1 STATEMENT
    1! default_item
  • If you can choose from two or more items, they appear vertically, in a stack.
    If you must choose one of the items, one item of the stack appears on the main path.
    Figure 4.
    
    1 STATEMENT
    1 required_choice1
    1 required_choice2
    If choosing one of the items is optional, the entire stack appears below the main path.
    Figure 5.
    
    1 STATEMENT
    1 optional_choice1
    1 optional_choice2
    If choosing an item is optional, but when no selection is made, the default is used, the default appears above the line and the remaining optional choices below the line.
    Figure 6.
    
    1 STATEMENT
    1! default_item
    1 optional_item
  • An arrow returning to the left above the main line indicates an item that can be repeated.
    Figure 7.
    
    1 STATEMENT + repeatable_item
  • Keywords (for example, INPUT) appear in uppercase letters. They must be spelled exactly as shown.
  • Variables (for example, nlrecs) appear in lowercase letters. They represent user-supplied names or values.

Related topics