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

What is a procedure to restart the program after the ABEND


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jamshirqureshi

New User


Joined: 13 Aug 2006
Posts: 20
Location: mumbai

PostPosted: Wed Sep 06, 2006 11:52 am
Reply with quote

hi everyone..!!!


IF suppose there 50 records to input file to input in a table but after inserting 10 records my program got abend.

What is a procedure to restart u r program frm tat perticular record??

plz help me

Thnks in advance
Back to top
View user's profile Send private message
vijayakumar.yellala

New User


Joined: 19 Apr 2006
Posts: 63
Location: Chennai

PostPosted: Wed Sep 06, 2006 12:36 pm
Reply with quote

Hello,

there is no way to restart from a perticular record. if any abend occuers use rollback verb, then start execution starting......

this is what i know...


Please correct me if i am worng.......

Regards
Vijay
Back to top
View user's profile Send private message
soumyaranjan007

New User


Joined: 30 Aug 2006
Posts: 30
Location: mumbai

PostPosted: Wed Sep 06, 2006 12:45 pm
Reply with quote

jamshirqureshi wrote:
hi everyone..!!!


IF suppose there 50 records to input file to input in a table but after inserting 10 records my program got abend.

What is a procedure to restart u r program frm tat perticular record??

plz help me

Thnks in advance



Hi,

i need few informations. do is your porogram i using ims-db2 or only db2?
do your program having the checkpoint logic?
For db2-ims-cobol program
==================
submit your program without changing the Jobname.
your checkpoint restart module will atomatically will take the most recent commit point.

sorry i am not work experience in db2-cobol program checkpoint logic.
But as per my knoledge, db2-cobol program also same logic as ims-db2-cobol.
logic
======
we have to maintain a log table for maintaining checkpoint log.
that log table will be used by scorlable cursor.

Regards
Soumya Ranjan Pradhan
Back to top
View user's profile Send private message
sarunkumaar

New User


Joined: 31 Aug 2006
Posts: 15
Location: Chennai, India

PostPosted: Wed Sep 06, 2006 2:10 pm
Reply with quote

You should commit all the records in the table before the abend and have to insert a row in COMMIT_RESTART table(this entry also need to commit). So that while restarting the job again, read the record from COMMIT_RESTART table which has JOB_I and PGM_I as your's and the commit position. Skip the records from input file until it reach the inserted record count. once if it reach then proceed with insert.

Your code has to be modified to support all these.
Back to top
View user's profile Send private message
Balasudher

New User


Joined: 27 Oct 2006
Posts: 3

PostPosted: Fri Oct 27, 2006 8:05 pm
Reply with quote

Hi friends,
i need how to implement checkpoint logic in jcl.
while inserting 1lak record in a table 1300 record abend,
here we use the checkpoint /Restart ,
could you pls tell me the step by step
Back to top
View user's profile Send private message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Fri Oct 27, 2006 8:52 pm
Reply with quote

Check out the below site,

http://gov.state.ne.us/enterprise_computing/db_mgt/pdf/Check-Restart_Scenario.pdf

Regards,
Itanium
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top