CA Workload Automation ESP Edition

Expand all | Collapse all

Force Complete or Bypass upon job failure

Jump to Best Answer
  • 1.  Force Complete or Bypass upon job failure

    Posted 01-21-2020 03:47 PM
    Hi,

    We've come to realize we can force complete a job in all instances when a failure occurs. Can we code this within the APPL ?

    JOB EBDQDB2
    CCCHK RC(1:4095) FAIL
    /*@@ CALENDAR=CA
    /*@@ SCHIDS: 201 202
    RUN HOLIDAYS
    RUN SAT
    RUN SUN
    IF TODAY('DEC 6 2013') THEN DO
    JOBATTR SELFCOMPLETING TASK
    ENDDO
    IF CAS_1TO20='Y' THEN NORUN TODAY
    IF CAS_21_RUN='Y' THEN RUN TODAY
    IF CAS_SAT_RUN='Y' THEN RUN TODAY
    IF CAS_FREE_DAY='Y' THEN RUN TODAY
    RELEASE ADD(CICDUP)
    RELEASE ADD(CICLUP)
    RELEASE ADD(EBD1802)
    RELEASE ADD(EBW1802)
    ENDJOB


    ------------------------------
    Dan
    ------------------------------


  • 2.  RE: Force Complete or Bypass upon job failure
    Best Answer

    Posted 01-21-2020 05:30 PM

    Hi Dan,

    Could you confirm that you want to force complete the same JOB in all applications? 

    If yes, then you can use JOBONCSF in ESP Proc together with AJ COMPLETE command. You can find some examples on using JOBONCSF in Example cookbook.

    Hope this helps,

    Lucy