Skip to content

ParserVisitor fails parsing OccursTo #172

Closed
@chandrasekaravr

Description

@yruslan Based on your suggestion from #156 (comment), 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.

Metadata

Assignees

No one assigned

    Labels

    acceptedAccepted for implementationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions