View previous topic :: View next topic
|
Author |
Message |
Aaryaa
New User
Joined: 20 Aug 2019 Posts: 1 Location: INDIA
|
|
|
|
Hi, one of the step in my proc is completing with return code 4. This proc is called in one job. The job has last step as -
// IF RC > 1 THEN
//PROC99 EXEC abend routine
// ENDIF
And because of which my job is finally abending.
Any idea how to override the return code of that step in the proc itself. So that I do not need to modify the job at all.
I tried giving -
IF STEP010.RC=04 THEN
SET LASTCC=01
ENDIF
but that did not help. I tried MAXCC / LASTCC / STEP.RC but none of that worked. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
And how are you planning to deploy proc in production ? Either one needs to be changed and the correct place is JCL. You don’t need that IF conditions at all and update the max rc in scheduling to 4 for this job and you are done. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2141 Location: USA
|
|
|
|
Aaryaa wrote: |
I tried giving -
IF STEP010.RC=04 THEN
SET LASTCC=01
ENDIF
but that did not help. I tried MAXCC / LASTCC / STEP.RC but none of that worked. |
With this level of understanding of JCL concepts you are welcome to the Beginners Forum!
The quoted code is (highly likely?) a mixture of keywords used in JCL, and completely different keywords used inside of system utility IDCAMS; both given with syntax errors. Is seems to be impossible at the Expert Forum to have no idea about the difference between them. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Any idea how to override the return code of that step in the proc itself. So that I do not need to modify the job at all. |
This cannot be done -- step condition codes are set by the program executing in the step, and once set they cannot be changed. Your BEST solution would be to change the job to
|
|
Back to top |
|
|
|