IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem in restart.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Wed Oct 15, 2008 10:01 pm
Reply with quote

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
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Oct 15, 2008 11:15 pm
Reply with quote

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
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Wed Oct 15, 2008 11:33 pm
Reply with quote

Thanks sir.
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Thu Oct 16, 2008 9:40 am
Reply with quote

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
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Thu Oct 16, 2008 4:00 pm
Reply with quote

Can you please send one sample program if possible? thanks in advance.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 16, 2008 8:36 pm
Reply with quote

Hello,

Unless your system has the bmc software installed, a sample using it would be little use. . .
Back to top
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Thu Oct 16, 2008 9:45 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 16, 2008 10:23 pm
Reply with quote

Hello,

You might look here. . . .

documents.bmc.com/supportu/documents/66/50/56650/56650.pdf
Back to top
View user's profile Send private message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Thu Oct 16, 2008 10:42 pm
Reply with quote

My database is IDMS. Will it be useful for me?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 16, 2008 11:20 pm
Reply with quote

Hello,

That is a question for BMC Software. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top