View previous topic :: View next topic
|
Author |
Message |
kaushik8205
New User
Joined: 10 Nov 2006 Posts: 49 Location: Canada
|
|
|
|
Hi,
I need to restart PROC from a particular step when it abends.
But the problem is that the step which i need to restart is having if statement..
eg:-
//*
// IF (MQSTEP02.RC GT 0) THEN
//*
//ABORT03 EXEC PGM=M703712C
//STEPLIB DD DSN=ENDN1.D06DADMT.SBATLOAD,DISP=SHR
So on restarting it gives problem since RC of mentioned step is not available.
Can anyone suggest a solution. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Try inserting this jcl after your job card and before the execute for the restart. This "step" will "run" and produce an RC=12 because there is no sysin dd statement;
Code: |
//MQSTEP02 EXEC PGM=IEBGENER
//SYSUT1 DD *
DATA
/*
//SYSUT2 DD SYSOUT=*
//SYSOUT DD SYSOUT=*
|
Code: |
IEF142I MSRDSGNR MQSTEP02 - STEP WAS EXECUTED - COND CODE 0012
|
The IF that refers to MQSTEP02 may work this way. Please give it a try and let us know. |
|
Back to top |
|
|
kaushik8205
New User
Joined: 10 Nov 2006 Posts: 49 Location: Canada
|
|
|
|
Thnax for the response..
but this not the only scenario..
Some other step in the proc mite b having cond LT 4 or equal to zero..
wat v need is a generic solution to bypass the if condition for the step, from which v r restarting the job... |
|
Back to top |
|
|
|