Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Problem in restart.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Problem in restart.
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Oct 16, 2008 8:36 pm    Post subject:
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    Post subject:
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

Site Director


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

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

Hello,

You might look here. . . .

http://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    Post subject:
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

Site Director


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

PostPosted: Thu Oct 16, 2008 11:20 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us