I am receiving a string of 3000 bytes (variable length) with delimiters from Unix. They correspond to 15 fields, 14th and 15th repeat 20 times.
My requirement is to unstring and remove delimiters.
Ex:
12345;678;ABCD;EF;12AC;1;AA;2;AB;3;AC
123;678;ABC;E;12A;10;AAA;20;ABC;30;ACC
The above two records should be moved to cobol variables
Name Value
Rec1 Rec2
Field1 12345 123
Field2 678 678
Field3 ABCD ABC
Field4 EF E
Field5 12AC 12A
Field6(1) 1 10
Field7(1) AA AAA
Field6(2) 2 AB
Field7(2) AB ABC
Field6(3) 3 10
Field7(3) AC ACC
Appreciate your help.
My requirement is to unstring and remove delimiters.
Ex:
12345;678;ABCD;EF;12AC;1;AA;2;AB;3;AC
123;678;ABC;E;12A;10;AAA;20;ABC;30;ACC
The above two records should be moved to cobol variables
Name Value
Rec1 Rec2
Field1 12345 123
Field2 678 678
Field3 ABCD ABC
Field4 EF E
Field5 12AC 12A
Field6(1) 1 10
Field7(1) AA AAA
Field6(2) 2 AB
Field7(2) AB ABC
Field6(3) 3 10
Field7(3) AC ACC
Appreciate your help.