Floating point host variables in COBOL applications that use SQL

The following figure shows the syntax for valid floating point host variable declarations. Floating point host variables are only supported for ILE COBOL for iSeries™.

Floating-point

Read syntax diagramSkip visual syntax diagram
                                        .-IS-.     
                               .-USAGE--+----+-.   
>>-+-01------+--variable-name--+---------------+---------------->
   +-77------+                                     
   '-level-1-'                                     

>--+-COMPUTATIONAL-1-+--+---------------------------------+----->
   +-COMP-1----------+  |        .-IS-.                   |   
   +-COMPUTATIONAL-2-+  '-VALUE--+----+--numeric-constant-'   
   '-COMP-2----------'                                        

>-- . ---------------------------------------------------------><

Notes:
  1. COMPUTATIONAL-1 and COMP-1 are equivalent. COMPUTATIONAL-2 and COMP-2 are equivalent.
  2. level-1 indicates a COBOL level between 2 and 48.