Automatic Commit in Cobol Pgm



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Automatic Commit in Cobol Pgm

Postby pulsar22 » Tue Oct 29, 2013 8:19 pm

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.
pulsar22
 
Posts: 34
Joined: Mon Sep 09, 2013 12:39 pm
Has thanked: 14 times
Been thanked: 0 time

Re: Automatic Commit in Cobol Pgm

 

Re: Automatic Commit in Cobol Pgm

Postby Ed Goodman » Tue Oct 29, 2013 8:38 pm

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.
Ed Goodman
 
Posts: 342
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Automatic Commit in Cobol Pgm

Postby BillyBoyo » Tue Oct 29, 2013 8:58 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Automatic Commit in Cobol Pgm

Postby dick scherrer » Wed Oct 30, 2013 2:35 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post