Page 1 of 1

Automatic Commit in Cobol Pgm

PostPosted: Tue Oct 29, 2013 8:19 pm
by pulsar22
If a program updates/inserts many lines in database and in case of abend it should commit the earlier work done. What is the method to do this?
Other than counting lines and commiting after a predefined number.

Re: Automatic Commit in Cobol Pgm

PostPosted: Tue Oct 29, 2013 8:38 pm
by Ed Goodman
All of the programs I have created/maintained do the commit processing with code in the program. As far as I know, there is nothing like a system setting to tell the database handler to commit every so often.

Re: Automatic Commit in Cobol Pgm

PostPosted: Tue Oct 29, 2013 8:58 pm
by BillyBoyo
It should be in the spec. If not, you are riding a unicycle towards the edge of a very high cliff. Stop now, and go back to get it sorted out.

Re: Automatic Commit in Cobol Pgm

PostPosted: Wed Oct 30, 2013 2:35 am
by dick scherrer
Hello,

If a COMMIT is being considered, there is more than just issuing the commit . . .

Checkpoint/restat should not be the consideration of one developer for one particular program.