View previous topic :: View next topic
|
Author |
Message |
jamshirqureshi
New User
Joined: 13 Aug 2006 Posts: 20 Location: mumbai
|
|
|
|
hi everyone..!!!
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 |
|
Back to top |
|
|
vijayakumar.yellala
New User
Joined: 19 Apr 2006 Posts: 63 Location: Chennai
|
|
|
|
Hello,
there is no way to restart from a perticular record. if any abend occuers use rollback verb, then start execution starting......
this is what i know...
Please correct me if i am worng.......
Regards
Vijay |
|
Back to top |
|
|
soumyaranjan007
New User
Joined: 30 Aug 2006 Posts: 30 Location: mumbai
|
|
|
|
jamshirqureshi wrote: |
hi everyone..!!!
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 |
Hi,
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.
logic
======
we have to maintain a log table for maintaining checkpoint log.
that log table will be used by scorlable cursor.
Regards
Soumya Ranjan Pradhan |
|
Back to top |
|
|
sarunkumaar
New User
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. |
|
Back to top |
|
|
Balasudher
New User
Joined: 27 Oct 2006 Posts: 3
|
|
|
|
Hi friends,
i need how to implement checkpoint logic in jcl.
while inserting 1lak record in a table 1300 record abend,
here we use the checkpoint /Restart ,
could you pls tell me the step by step |
|
Back to top |
|
|
Itanium
Active User
Joined: 22 Jan 2006 Posts: 114 Location: India
|
|
Back to top |
|
|
|