VMS Help  —  COBOL  PROCEDURE_DIVISION, SEARCH  1format_serial
  The SEARCH statement searches for a table element that satisfies a
  condition.  It sets the value of the associated index to point to the
  table element.

  Format 1 -

   SEARCH src-table [ VARYING pointr ] [ AT END stment ]

      { {WHEN cond stment} ... END-SEARCH   }
      {                                     }
      { {WHEN cond { stment        } }      }
      { {          { NEXT SENTENCE } } ...  }
Additional Information: explode extract

src-table
pointr
cond
stment
Close Help