Handling JCL Errors using COND,ABEND

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Rookie
Member
Posts: 8
Joined: Thu Mar 15, 2012 12:31 pm

Handling JCL Errors using COND,ABEND

Post by Rookie » Sun Oct 21, 2012 11:55 pm

I'm trying to do an enhancement in my Shop where I want to force something to happen if a JCL Error occurs. For Example, if I get a JCL error in one Step of my Job, I'm trying to force something to happen.

I tried ABEND ( IF ABEND THEN do my steps) ,COND obviously doesnt work.

Anyother way to handle JCL Errors.Please provide inputs
Thank you

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon Oct 22, 2012 12:05 am

I do not believe that you can. A JCL error is a severity 1 error. If you need to do something after such an error then try and see if the scheduler will submit a job on JCL error. Schedulers can do that with abends but I do not know if JCL errors can be handled like that.
Regards
Nic

Rookie
Member
Posts: 8
Joined: Thu Mar 15, 2012 12:31 pm

Post by Rookie » Mon Oct 22, 2012 12:10 am

Just curious if this can be handled. I researched extensively and the find is that it can't be handled. :(
Thank you

Rookie
Member
Posts: 8
Joined: Thu Mar 15, 2012 12:31 pm

Post by Rookie » Mon Oct 22, 2012 12:12 am

thank you Nic for your reply
Thank you

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Mon Oct 22, 2012 4:11 am

If you are talking of a JCL error which causes a job to be "flushed" from the input queue, then your scheduler will at least know about it, but there is nothing you can do about it in the JOB itself, because it never even starts executing.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others