Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL Error Handling

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL Error Handling
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

Moderator Team Head


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

PostPosted: Fri Sep 12, 2008 12:40 pm    Post subject: Reply to: JCL Error Handling
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    Post subject: Reply to: JCL Error Handling
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: 8593
Location: Back in jolly old England

PostPosted: Fri Sep 12, 2008 1:09 pm    Post subject: Re: Reply to: JCL Error Handling
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

Site Director


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

PostPosted: Fri Sep 12, 2008 8:52 pm    Post subject:
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

Senior Member


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

PostPosted: Sat Sep 13, 2008 7:33 am    Post subject: Re: JCL Error Handling
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    Post subject: Re: JCL Error Handling
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: 8593
Location: Back in jolly old England

PostPosted: Sun Sep 14, 2008 1:37 pm    Post subject: Re: JCL Error Handling
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Mon Sep 15, 2008 1:19 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us