VMS Help  —  COBOL  PROCEDURE_DIVISION, miscellaneous_topics, subscripting
  Subscripts can appear only in references to individual elements in a
  list, or table, of like elements that do not have individual
  data-names.

  Format 1 -

   { data-name      } ( { arithmetic-expression } ... )
   { condition-name }

   Format 2 -

                 { ALL                            }
      argument ( { integer-1                      }
                 { data-name  [ {+|-} integer-2 ] } ... )
                 { index-name [ {+|-} integer-3 ] }

   In Format 2,  argument is  an  intrinsic function  argument  that is
   allowed to be repeated a variable number of times.  Note that Format
   1 may also be used for intrinsic function  arguments  when  ALL sub-
   scripts are not specified.  In Format 2,  when ALL is specified as a
   subscript, the effect is as if  each  table element  associated with
   that  subscript position were specified.
Close Help