openmainframeproject/cobol-check

Injected code does not respect DECIMAL-POINT IS COMMA

Closed this issue · 1 comments

In many European countries, if not all, we use comma as decimal point, and use below option in all our COBOL programs
image

In the injected code you don't respect above option
image

Which ends up in a syntax error
image

In the old version we made this change our self in ZUTZCWS copybook, but this is not possible, if we choose to use the compiled version downloaded from https://neopragma.com/projects/cobol-check/

Is it possible to look for the DECIMAL-POINT option a decide which code to inject, or give us an entry in the config.properties to decide the value of the decimal point?

Thanks for a nice product.
Best regards
Lars Egeberg, BANKDATA.

An option has been added in the config file for DECIMAL-POINT IS COMMA. If the configuration is set to true, the injected code will respect the rule, however it is expected that the cobol compiler has defined the rule. If the source program (the one which we are testing) sets DECIMAL-POINT IS COMMA, the option set in config will be overwritten (only for the current instance), and the injected code will still respect the rule. I will be closing this issue.