View previous topic :: View next topic |
Author |
Message |
rabbus Beginner
Joined: 23 Oct 2005 Posts: 2 Topics: 1
|
Posted: Sun Oct 23, 2005 1:00 am Post subject: Any way to specify return code of the JOB itself |
|
|
I've got a job which has several steps, some of which conditionally execute based upon the return codes of the previous steps. I had thought the return code of the job would be the highest code of all the steps in that job, but after some testing that is not the case.
Is there any way to force a return code of a particular value? Or even just some non-zero value? At this point the job has RC=0 even if there was a step that had a return code of 256.
Thanks. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Sun Oct 23, 2005 2:59 am Post subject: |
|
|
No, there is not. The overall return-code of the job is the highest return-code of any of the steps. |
|
Back to top |
|
 |
Phaninder Beginner

Joined: 06 Jul 2005 Posts: 27 Topics: 11
|
Posted: Sun Oct 23, 2005 3:03 am Post subject: |
|
|
Please check this posting , It will help you
"http://www.mvsforums.com/helpboards/viewtopic.php?t=1133"
Lastly , please searching once before you post
Thanks . |
|
Back to top |
|
 |
rabbus Beginner
Joined: 23 Oct 2005 Posts: 2 Topics: 1
|
Posted: Sun Oct 23, 2005 2:21 pm Post subject: |
|
|
Phaninder: Thanks. I did search this topic and did see that post, but my results were not consistent with what it said.
superk: For some reason this is not happening. I have a step in my job which, when it fails, has rc=256. However, the return code for the job is displaying as RC=0.
i.e. when I submit the job from ISPF Browse, the following is displayed:
_________ <jobname> *RC=0 115 2005/10/19 2005/10/220 14:12:13
I was expecting that to be RC=256 if the max return code of all the steps was 256. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Oct 24, 2005 9:09 am Post subject: |
|
|
rabbus,
Did the step in question end with a return code of 256?
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Mon Oct 24, 2005 9:46 am Post subject: |
|
|
There are few ways to set a RC. My favorite is SETRC in file 357 on the CBT Tape.
O.
________
Suzuki DR-Z400SM |
|
Back to top |
|
 |
|
|