Skip to content

Difference in decoding PIC 9(9)V99 field between spark-cobol_2.11 and spark-cobol_2.12 (NULL in 2.12) #813

@sandhyaalusuri

Description

@sandhyaalusuri

Description

We are observing a difference in output when upgrading from Spark (Scala 2.11) to Spark (Scala 2.12) using Cobrix.
A field defined as PIC 9(9)V99 in the copybook is decoded correctly in spark-cobol_2.11, but the same field is returned as NULL in spark-cobol_2.12.

Spark 2.x (Scala 2.11): Cobrix spark-cobol_2.11-2.2.2
Spark 3.x (Scala 2.12): Cobrix tested spark-cobol_2.12-2.2.2, spark-cobol_2.12-2.6.3.

Copybook snippet
05 AMOUNT-FIELD PIC 9(9)V99.

Observed behavior
Version Output
spark-cobol_2.11 110323.11
spark-cobol_2.12 NULL

We would like to understand whether this is:

  1. an intentional change in strictness/validation,
  2. expected behavior in newer Cobrix versions,
  3. or if additional options are required to maintain backward-compatible behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions