-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing proper numeric(little endian type) values after parsing #740
Comments
Hi @jaysara , First of all, thanks a lot for such a detailed explanation of the issue and for providing the copybook and examples! From what I can see, the copybook has PICs like I see this is an issue that cannot be worked around. This is because if you use 9(10), Cobrix will use 8-byte long in stead of 4 byte integer. We can add a special option to tread binary fields to its full extent, and ignore the maximum length for binary fields. Converting this question to a feature request. |
Proposed option to add: Current behavior:
New behavior in order to get expected values:
|
hi @yruslan Thanks for the reply. I tried with
However, that has not changed anything. Any specific version of cobrix I should use ? I am using 2.6.9 |
Yes, the feature is not implemented yet. The option is just a proposal. But after looking at the code, we won't add the option, will just make the default behavior to support the wider range of values. This is almost like a bugfix. The feature is going to be implemented soon. |
Thanks @yruslan . Sorry for pushing this little. It will help with our internal planning timeline point of view. Can you help with what will "soon" mean for this kind of bug fix. Should we plan as 1-week, 1-month or less than that ? Also, will you let us know here when the bug is fixed and new version is available. Thanks again for your help. |
Sure. The plan is to implement it this week and release a new version next week. Will let you know when the change is available in the master branch so you can also test it on your use case. |
Background
I am trying to parse a fixed record size file with digits presented by little-endian. I modified COMP-5 in the copybook to use COMP-9. I am able to parse all the text fields fine. However some numeric fields are not coming out correctly. The example-copybook for Copybook.
The sample input file is Input File
The Cobrix parse produced file is Cobrix Output
The expected output file from original system is Expected
This is my java code,
String custInputCopyBook = readCopyBook(configPath);// getCustInputCopyBook(configPath,isLocal);
The text was updated successfully, but these errors were encountered: