You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a .cob file has a pic with two sets of braces in it, if either set of braces has more than one digit in it then the parser fails to parse that line and returns an error NOT DIVISIBLE by the RECORD SIZE calculated from the copybook with a byte count less than what should be expected.
Thanks for the bug report. Unable to reproduce in on the current master though. What version of Cobrix are you using?
Added tests to cover these specific cases. Take a look at this commit (5b1338153).
For S9(15)V99 and S9(15)V9(2) the parser produced the same field size (17). The scale and precision are the same as well.
If this is still an issue in the current master, could you please provide the part of the copybook where that happens and parts of layout positions showing the difference of field lengths which should be printed to the log.
If a .cob file has a pic with two sets of braces in it, if either set of braces has more than one digit in it then the parser fails to parse that line and returns an error NOT DIVISIBLE by the RECORD SIZE calculated from the copybook with a byte count less than what should be expected.
Pass: PIC S9(15)V99.
Pass: PIC S9(9)V9(6).
Fail: S9(15)V9(2).
I suspect that this may be something to do with repeatCount in expandPic on line 944 of CopybookParser.scala
The text was updated successfully, but these errors were encountered: