Menu

#403 Rollback functionality doesn't work

GC 4.x
closed
nobody
None
5 - default
2022-09-28
2021-06-14
No

Hi GnuCOBOL team,

we would like to ask if the implementation of Rollback is on the roadmap of GnuCOBOL.

Especially the syntac

LOCK MODE IS MANUAL WITH ROLLBACK

We got a testcase, where we found out, that this seems to be parsed but not to be supported at the moment.

Please take a look in the attached testcase while using the script tc2287.sh:

cobc -x tc2287.cbl

./tc2287

The program shows a message at the end, whether the test was passed (no second record existing) or not passed (second record was written).

Kind regards

Sebastian Steinweg
Easirun Europa GmbH

3 Attachments

Discussion

  • Simon Sobisch

    Simon Sobisch - 2021-06-14
    • Group: GC 3.1 --> GC 4.x
     
  • Simon Sobisch

    Simon Sobisch - 2021-06-14

    This should be supported with GnuCOBOL 4.x, while it is not "stable" (in the way that an update may need a complete recompile of all modules and in the way that it is not as widely tested as 3.x) it would be good if you could run the testcase there to verify the state of this.

    In any case, especially for bug-hunting (or verification) it is highly suggested to compile with -Wall --debug.
    In your case the included -Wpending -Wunfinished should have raised a warning - hasn't it?

     
  • Sebastian Steinweg

    sure, the warning

    Warnung: WITH ROLLBACK is not implemented [-Wpending]

    is shown.

    We will check this also with version 4.x

     
  • Sebastian Steinweg

    Hi,

    could you please send me a link to download the latest version of GC 4.x.

    I'm not sure, but it seems that the links in the download area are not working.

     
  • Ron Norman

    Ron Norman - 2022-09-28

    COMMIT/ROLLBACK was completed February of 2021.
    I just ran you test case and it passed.

    sh ./tc2287.sh
    GNU-rollback-commit >> ee:0002287 >> GNU:0000000000 >> passed

     
  • Ron Norman

    Ron Norman - 2022-09-28
    • status: open --> closed
     

Log in to post a comment.