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

How can i restart so that it will procees from 6th record


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

New User


Joined: 21 Jan 2006
Posts: 19
Location: Mumbai

PostPosted: Thu May 08, 2008 8:55 am
Reply with quote

Hi,

My input file has suppose 10 records and the program abended after 5th record, how can i restart so that it will procees from 6th record.
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Thu May 08, 2008 9:19 am
Reply with quote

Restart Logic : after every successful processing of a record, you need to store that recordID in some other file. when the program starts execution, it first checks that file for the last successfully processed record. after getting that recordID, the program reads the input file for that recordID and processes the next record onwards...
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 May 08, 2008 11:08 am
Reply with quote

Hello,

To add just a bit more:

You need to consider what the abended process was doing. . .

For example:

If it was creating a report output, the report(s) needs to be completely restarted from the beginning even if only to get the accumulators back in sync.

If it was creating output files, they too would need to be re-synched.

If there were database updates (some of which were "rolled back" because of the abend not occurring exactly at a checkpoint), the database will be out of sync.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top