IF suppose there 50 records to input file to input in a table but after inserting 10 records my program got abend.
What is a procedure to restart u r program frm tat perticular record??
plz help me
Thnks in advance
i need few informations. do is your porogram i using ims-db2 or only db2?
do your program having the checkpoint logic?
For db2-ims-cobol program
submit your program without changing the Jobname.
your checkpoint restart module will atomatically will take the most recent commit point.
sorry i am not work experience in db2-cobol program checkpoint logic.
But as per my knoledge, db2-cobol program also same logic as ims-db2-cobol.
we have to maintain a log table for maintaining checkpoint log.
that log table will be used by scorlable cursor.
Joined: 31 Aug 2006 Posts: 15 Location: Chennai, India
You should commit all the records in the table before the abend and have to insert a row in COMMIT_RESTART table(this entry also need to commit). So that while restarting the job again, read the record from COMMIT_RESTART table which has JOB_I and PGM_I as your's and the commit position. Skip the records from input file until it reach the inserted record count. once if it reach then proceed with insert.
Your code has to be modified to support all these.