View previous topic :: View next topic
|
Author |
Message |
Saira
New User
Joined: 17 Jul 2006 Posts: 2
|
|
|
|
What are the ways in which we can implement restart logic in JCL without using the RESTART in Job Card ? Can we implement restart logic through COBOL program, how do we do that ? |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
What are the ways in which we can implement restart logic in JCL without using the RESTART in Job Card ? |
Is that an Interview Question ?
Well, You can code COND Parameter to bypass the steps you dont want to run, before the steps to be restarted. But why to reinvent the wheel.
Quote: |
Can we implement restart logic through COBOL program, how do we do that ? |
Yes, if you meant submitting the new job from a COBOL Program. For this SEARCH the forum. |
|
Back to top |
|
|
shankarravi1984 Warnings : 1 New User
Joined: 15 Sep 2006 Posts: 9 Location: pune
|
|
|
|
hi this is ravi,
restart can be used in the job statement or in the jobstep,if the abend occurs after compilig the program it automatically restarts the job step or job as you mentioned the restart statement in the jcl.
r=restart
nrc=restart with no check points
nr= no automatic restart
check point-it stores the last succesfully executed step in the job,whose return code is "00"
Code: |
//ravi1 job auy,notify=pnew669
//s1 exec pgm=ravi1,rd=r
//dd1 dd dsn=ravi.ps,disp=shr
//sysin dd *
// |
|
|
Back to top |
|
|
|