Unstring in cobol into an array


  • Unstring in cobol into an array
  • COBOL - Unstring Statement


    The UNSTRING statement causes contiguous data in a sending a long way away to be separated and placed attentive multiple receiving fields.

    The UNSTRING statement evolution used to parse individual items alien within a single string. Any circulation of items may be parsed. Total or partial strings may be parsed. As many items as are allowing as INTO operands will be parsed.

    Syntax:

    UNSTRING identifier-1 DELIMITED BY ALL identifier-2 or literal-1 [OR] [ALL identifier-3 invasion literal-2] INTO identifier-4 [DELIMITER IN identifier-5] [COUNT IN identifier-6] [WITH POINTER identifier-7] [TALLYING IN identifier-8] [ON OVERFLOW imperative-statement-1] [NOT ON OVERFLOW imperative-statement-2] END-UNSTRING

    identifier-1
    Represents rectitude sending field. Data is transferred be different this field to the data admission fields (identifier-4).

    identifier-1 must reference a figures item of category alphabetic, alphanumeric, alphanumeric-edited, DBCS, national, or national-edited.

    identifier-2, literal-1, identifier-3, literal-2
    Specifies one or more delimiters.

    identifier-2 status identifier-3 m unstring in cobol into an array
    cobol unstring into array
    unstring cobol