AbsaOSS / AbsaOSS/cobrix

multi segment parse

Open
#489 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Scala
Stars
170
Forks
96
Avg merge
57m
Merged PRs (30d)
2

Description

Hi @yruslan

I have multi segmented binary file and able to parse it, if single segment column present. How do I parse multi segmented file with two segment columns present ?

ex: copybook

01 MASTER-DATA.
05 KEY-TYPE PIC X(01).
05 KEY-IND PIC X(01).
* KEY=A AND IND=0
05 KEY-A0-REC.
10 DATA-FIELDS PIC X(998).
*KEY =B AND IND=0
05 KEY-B0-REC REDEFINES KEY-A0-REC.
10 DATA-FIELDS PIC X(998).
*KEY= 'A'-'F' AND IND=1
05 KEY-01-REC REDEFINES KEY-B0-REC.
10 DATA-FIELDS PIC X(998).
* KEY = 'A-F' AND IND=2
05 KEY-02-REC REDEFINES KEY-01-REC.
10 DATA-FIELDS PIC X(998).

Here segment ids are key-type and key-ind.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.