View previous topic :: View next topic
|
Author |
Message |
guruji Warnings : 1 New User
Joined: 13 Apr 2007 Posts: 59 Location: Chennai
|
|
|
|
Hi,
I've a JCl which render a specific Return code (say XXXX) and fail in one of the business conditions. But I want to change this return code XXXX to 0004 or 0000 and make the job's status as successful run, only in this business condition. In all other conditions, let the job run and render the corresponding Return code.
Is there any option possible for this using an IF condition or so?
Thanks,
Reni |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
How will you detect the business condition? |
|
Back to top |
|
|
guruji Warnings : 1 New User
Joined: 13 Apr 2007 Posts: 59 Location: Chennai
|
|
|
|
Hi Akatsukami,
The return code will be XXXX only in this specific business condition and for that alone I need to set the job's MAXCC as 0004 or 0000, so that I need not manually complete the job.
The condition is nothing but having a member in one of the PDS's used in the jobstep.
Thanks,
Reni. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the return code of each step is determined <returned> by the program being executed
it cannot be changed in any other way
modify the programs involved in order to return the appropriate return code for what You call <business condition> |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
If you have job scheduling/tracking software it may be customisable to accept COND CODE XXXX as normal completion.
Also, you could insert a prior step to check for the member and set COND CODE 4 (flushing remaining steps). |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Control-M can if I remember correctly even take actions depending on the RC's of specific jobsteps. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
my understanding is that the return code XXXX is an error,
according to some <business condition> it should be accepted as a valid/successful return code |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Sounds like a "solution" that should be unacceptable. . .
If it is "bad" it is bad. If there is some condition that "trumps" the bad, the code should be changed to deal with the condition at that time - not gotten around later. When the step ends it should set a "bad" rc if there is a problem and a good rc when there is no problem.
Even if it means changing some special/sacred code. . . (At least from what has been posted so far). |
|
Back to top |
|
|
|