View previous topic :: View next topic
|
Author |
Message |
Ambili S
Active User
Joined: 06 Sep 2007 Posts: 112 Location: India
|
|
|
|
There is a sequential file with 100 records.My pgm should read this file sequentially and update a KSDS file accordingly.
My question is if the pgm abends after 25 records are updated then how would i restatrt it or what should i take care in the code for such scenario.
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Backup the file before the run and if there is an abend, fix the problem, reload the data and rerun. |
|
Back to top |
|
|
nareshkp
New User
Joined: 26 Sep 2007 Posts: 28 Location: Bangalore
|
|
|
|
In my opinion, if there is no checkpoint/restart logic implemented in your program, you can do a normal restart after fixing the abend.
Checkpoint/restart logic will be mostly project soecific. The basic idea behind this is to commit the changes at regular intervals (can be based on Time or Input record count or Output record count) called checkpoint frequency and keep track of the last successful committed record to be used during the restart. |
|
Back to top |
|
|
|