HELPLIB.HLB  —  COBOL  PROCEDURE_DIVISION, STRING
  The STRING statement concatenates the partial or complete contents of one
  or more data items into a single data item.

  Format -

   STRING { { src-string } ... DELIMITED BY { delim } } ...
          {                                 { SIZE  } }

       INTO dest-string [ WITH POINTER pointr ]

       [ ON OVERFLOW stment ] [ NOT ON OVERFLOW stment ]

       [ END-STRING ]

1  –  src-string

  is a nonnumeric literal or identifier of a DISPLAY data item.  It is
  the sending area.

2  –  delim

  is a nonnumeric literal or the identifier of a DISPLAY data item.  It
  is the delimiter of src-string.

3  –  dest-string

  is the identifier of a DISPLAY data item.  It cannot be reference
  modified.  Dest-string is the receiving area that contains the result
  of the concatenated src-strings.

4  –  pointr

  is an elementary numeric data item described as an integer.  It points
  to the position in dest-string to contain the next character moved.

5  –  stment

  is an imperative statement.
Close Help