Use the following description to read the syntax diagrams in
this document:

- 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 syntax diagram.
The
---> symbol indicates that the syntax diagram is continued on the
next line.
The
>--- symbol indicates that the syntax diagram is continued from the
previous line.
The
--->< symbol indicates the end of a syntax diagram.
Diagrams of syntactical units other than complete statements start with the
>--- symbol and end with the
---> symbol.
-
Required items appear on the horizontal line (the main
path).

Format
>>-STATEMENT--required item------------------------------------><
-
Optional items appear below the main path.

Format
>>-STATEMENT--+---------------+--------------------------------><
'-optional item-'
- When 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.

Format
>>-STATEMENT--+-required choice 1-+----------------------------><
'-required choice 2-'
If choosing one of the items is optional, the entire stack appears below the main
path.

Format
>>-STATEMENT--+-------------------+----------------------------><
+-optional choice 1-+
'-optional choice 2-'
-
An arrow returning to the left above the main line indicates
an item that can be repeated.

Format
.-----------------.
V |
>>-STATEMENT----repeatable item-+------------------------------><
A repeat arrow above a stack indicates that you can make more than one choice from the
stacked items, or repeat a single choice.
- Variables appear in italic lowercase letters (for example, parmx). They represent user-supplied names or values.
- If punctuation marks, parentheses, arithmetic operators, or other such symbols are
shown, they must be entered as part of the syntax.
The following example shows how the syntax is used.

Format
(1) (2)
>>-STATEMENT------+-identifier-1-----+-------------------------->
'-literal-1--------'
.--------------------.
V |
>----+----------------+-+--------------------------------------->
| (3) |
'-| item 1 |-----'
.-----------------------------------.
V (4) |
>----TO--identifier-3--+---------+-----+------------------------>
'-ROUNDED-'
(5)
>--+--------------------------------------------+--------------->
'-+----+--SIZE ERROR--imperative-statement-1-'
'-ON-'
>--+-------------------+---------------------------------------><
| (6) |
'-END-STATEMENT-----'
item 1
|--+-identifier-2------------+----------------------------------|
+-literal-2---------------+
'-arithmetic-expression-1-'
Notes:
- The STATEMENT keyword must be specified and coded as shown.
- This operand is required. Either identifier-1 or literal-1 must
be coded.
- The item 1 fragment is optional; it can be coded or not,
as required by the application. If item 1 is coded, it can be repeated with
each entry separated by one or more COBOL separators. Entry selections allowed
for this fragment are described at the bottom of the diagram.
- The operand identifier-3 and
associated TO keyword are required and can be repeated with one or more COBOL
separators separating each entry. Each entry can be assigned the keyword ROUNDED.
- The ON SIZE ERROR phrase with associated imperative-statement-1 is
optional. If the ON SIZE ERROR phrase is coded, the keyword ON is optional.
- The END-STATEMENT keyword can be coded to end the statement.
It is not a required delimiter.