MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Any way to specify return code of the JOB itself

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
rabbus
Beginner


Joined: 23 Oct 2005
Posts: 2
Topics: 1

PostPosted: Sun Oct 23, 2005 1:00 am    Post subject: Any way to specify return code of the JOB itself Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Sun Oct 23, 2005 2:59 am    Post subject: Reply with quote

No, there is not. The overall return-code of the job is the highest return-code of any of the steps.
Back to top
View user's profile Send private message
Phaninder
Beginner


Joined: 06 Jul 2005
Posts: 27
Topics: 11

PostPosted: Sun Oct 23, 2005 3:03 am    Post subject: Reply with quote

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
View user's profile Send private message
rabbus
Beginner


Joined: 23 Oct 2005
Posts: 2
Topics: 1

PostPosted: Sun Oct 23, 2005 2:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Oct 24, 2005 9:09 am    Post subject: Reply with quote

rabbus,

Did the step in question end with a return code of 256?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Mon Oct 24, 2005 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group