Skip to content

0000{ is converted to null instead of 0 when field type has PIC S9(5) in US_ASCII file #459

@Loganhex2021

Description

@Loganhex2021

Describe the bug

In Cloud Migration Project, Cobrix library is making null for the field when we get a value like '0000{' to the type PIC s9(5) in copybook for the US_ASCII file.
In the existing on-prem system it was making 0 and not giving null for the same value.
Could you please help us to solve this

Sample US_ASCII Data:
P0000{
T12340
P89870

CopyBook:
01 Employee.
05 EmployeeType PIC X(1).
05 Salary PIC S9(5).

Expected Output:
EmployeeType Salary
P 0
T 12340
P 89870

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions