View previous topic :: View next topic
|
Author |
Message |
Apeksha
New User
Joined: 21 May 2008 Posts: 37 Location: Mumbai
|
|
|
|
Hi,
I have a JCL, one of the step may fail with JCL error, So I want handle that situation at runtime, means if JCL error occurs I want to perform some different steps. Can we achieve this?
Hope My question is clear.
Thanks,
Apeksha |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No. A JCL error will always flush the job and prevent any further processing.
A better solution is to make sure this doesn't happen to begin with. |
|
Back to top |
|
|
vcjadhav Warnings : 1 New User
Joined: 27 May 2008 Posts: 19 Location: India
|
|
|
|
You can try this out if needed:
If the job ABENDS then execute the steps that you want in some other job that by triggering that job only if the job ABENDS. Try this out if it works, though I have not tried it. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
vcjadhav wrote: |
You can try this out if needed:
If the job ABENDS then execute the steps that you want in some other job that by triggering that job only if the job ABENDS. Try this out if it works, though I have not tried it. |
An abend and a JCL error are two completely different animals, and as far as I can recall the many scheduling software packages do not trigger on JCL errors.
Also, for a job to be triggered how will the scheduling package know what steps that you would like it to run ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
So I want handle that situation at runtime, means if JCL error occurs I want to perform some different steps. |
Sorry, but no, you don't. Not really. . .
You want to make sure that the jcl will never fail. Nothing should ever happen in a production run that causes a jcl error. If your system has batch processes that occasionally fail with a jcl error, they should be corrected to prevent the jcl error, not deal with it by "running something else". |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi Apeksha,
Apeksha wrote: |
I have a JCL, one of the step may fail with JCL error
|
If you tell us what are (can be) the possible reason/s for your JOB to get a JCL error there can be some alternate solution/s I believe.. |
|
Back to top |
|
|
govil.mf Currently Banned New User
Joined: 04 Aug 2008 Posts: 4 Location: Delhi
|
|
|
|
Apeksha wrote: |
Hi,
I have a JCL, one of the step may fail with JCL error, So I want handle that situation at runtime, means if JCL error occurs I want to perform some different steps. Can we achieve this?
Hope My question is clear.
Thanks,
Apeksha |
Hi,
No if JCL error occour then other steps will get flush, else u can put the condition as well..
Regards
Govil |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
govil.mf wrote: |
Apeksha wrote: |
Hi,
I have a JCL, one of the step may fail with JCL error, So I want handle that situation at runtime, means if JCL error occurs I want to perform some different steps. Can we achieve this?
Hope My question is clear.
Thanks,
Apeksha |
Hi,
No if JCL error occour then other steps will get flush, else u can put the condition as well..
Regards
Govil |
Could you please explain your comment in detail with proof of statement. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
JCL errors can be of different types. If there's a syntax error the job will not be executed at all. If in one of the steps i.e dataset errors occurs previous steps are executed and the job will die while checking the current step. So our TS should provide more information. |
|
Back to top |
|
|
|