View previous topic :: View next topic
|
Author |
Message |
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
I am having the below scenario.
My Cobol program is updating the database. Assume my Input file is having 1000 records. While processing the input file it got abended at 450 record but it went fine(updation to database) till 449th record and also comit was performed till 449th. Now i need to restart the program from 450th record. Can you please tell me the way to have this record number in a temporary buffer till the completion of 1000th record in the case of restart?. also I need to read this temporary buffer incase of restart.
I am restarting from the run cobol step but it should start from 450th recored.
Right now my situation is I cant use database due to some internal issue for this scenario.
Thanks in advance!! |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Three methods come to mind initially:
1. If these abends happen infrequently, remove the 1st 449 records from the input file and restart.
2. Use a restart file to keep track of the last input record processed. Your restarted program would read this file and know where to resume processing. This method would involve lots of I/O due to the fact you'd need to close and reopen the file for every input record.
3. Commit only at end of the unit of work.
The method you use will depend on your input volume. |
|
Back to top |
|
|
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
Thanks sir. |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
In my shop, we use something called AR/CTL (application restart cntl); a BMC software. It needs certain restart variables (last read record, counters etc) which are saved and retrieved back in case of a restart run. The program continues from the record for which it abended. |
|
Back to top |
|
|
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
Can you please send one sample program if possible? thanks in advance. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Unless your system has the bmc software installed, a sample using it would be little use. . . |
|
Back to top |
|
|
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
Right now I am in a process of suggesting the solution for this. So i need to verify wheather this software is useful for us or not.Can you please give some overview or document about that product? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
My database is IDMS. Will it be useful for me? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
That is a question for BMC Software. . . |
|
Back to top |
|
|
|