IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL Error Handling


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Apeksha

New User


Joined: 21 May 2008
Posts: 37
Location: Mumbai

PostPosted: Fri Sep 12, 2008 12:35 pm
Reply with quote

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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Sep 12, 2008 12:40 pm
Reply with quote

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
View user's profile Send private message
vcjadhav
Warnings : 1

New User


Joined: 27 May 2008
Posts: 19
Location: India

PostPosted: Fri Sep 12, 2008 1:06 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Sep 12, 2008 1:09 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Sep 12, 2008 8:52 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sat Sep 13, 2008 7:33 am
Reply with quote

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
View user's profile Send private message
govil.mf
Currently Banned

New User


Joined: 04 Aug 2008
Posts: 4
Location: Delhi

PostPosted: Sun Sep 14, 2008 5:18 am
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Sep 14, 2008 1:37 pm
Reply with quote

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

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Sep 15, 2008 1:19 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top