DCL (Declare CL Variable) syntax diagram


Pgm: B,I
Threadsafe: Yes
                                          (1)
>>-DCL--VAR(--&CL-variable-name--)--TYPE(-------+-*DEC--+--)---->
                                                +-*CHAR-+
                                                '-*LGL--'
 
>--+-------------------------------------------------+---------->
   |      (1) (2)                                    |
   '-LEN(-----------length--+-------------------+--)-'
                            '-decimal-positions-'
 
                                     (3)
>--+-------------------------------+---------------------------><
   |        (1)                    |
   '-VALUE(-------initial-value--)-'
 
 

Notes:

  1. A CL variable cannot be coded on this parameter.

  2. The number of decimal positions can be specified only if TYPE(*DEC) is specified.

  3. All parameters preceding this point can be specified in positional form.