Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Language Reference


How to read the syntax diagrams

Use the following description to read the syntax diagrams in this document: Link to How to read dotted decimal syntax diagrams

The following example shows how the syntax is used.

Read syntax diagramSkip visual syntax diagram
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:
  1. The STATEMENT keyword must be specified and coded as shown.
  2. This operand is required. Either identifier-1 or literal-1 must be coded.
  3. 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.
  4. 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.
  5. 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.
  6. The END-STATEMENT keyword can be coded to end the statement. It is not a required delimiter.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)