ParserVisitor fails parsing OccursToSee original GitHub issue
@yruslan Based on your suggestion from https://github.com/AbsaOSS/cobrix/issues/156#issuecomment-522518017, i tried with the prepare_release_1_0_0
This version is failing (with NumberFormatException) to parse the OccursTo section of my copybook,
04 CARR-CLM-VAR-GRP. 06 NCH-EDIT-GRP OCCURS 0 TO 13 TIMES DEPENDING ON CARR-NCH-EDIT-CD-CNT. 08 NCH-EDIT-TRLR-IND-CD PIC X. 08 NCH-EDIT-CD PIC X(4).
It is trying to parse the String TO13 instead of just 13
As an alternate: I initially tried with the current release tag 0.5.6. And as pointed out in the above linked issue, the RDW is correctly decoded and all other sections are getting decoded, except for the OCCURS…DEPENDING ON… sections. It is correctly identifying the count value from CARR-NCH-EDIT-CD-CNT and adds that many number repeating groups in the output. However, all the fields in the groups are empty.
- Created 4 years ago
Top GitHub Comments
@yruslan Thanks for the tip. It worked perfectly. I was using the segment_filter and segment_field` initially.
An option would be great to switch between FixedLength and VariableLength.