openmainframeproject / cobol-check

A testing framework for Cobol applications
Apache License 2.0
78 stars 28 forks source link

Output file group declaration copied twice in the generated program #334

Open Thibaut69 opened 9 months ago

Thibaut69 commented 9 months ago

Hi,

I have a 01 group OA00 with 7 level 10 in my input cobol program : image

And the generated cobol (CC##99.cbl by default) contained this group twice in the WSS : image

And below the SQLCA copy : image

And this is note the case in the input program as you can see : image

The SQLCA copy is like this : image

I'm running CC 0.2.8

Thibaut69 commented 9 months ago

Temporary fix, move the group to the WSS in the input cobol program.

Rune-Christensen commented 9 months ago

Hi @Thibaut69 Thanks for reporting this. I believe this will be fixed by part of the PR by samdion. Regards Rune

samdion1994 commented 9 months ago

Hi @Thibaut69,

Thanks for your input, Working on a PR for this issue.

Feel free to use the fix-db2 branch in the mean time.