Automic Workload Automation

Expand all | Collapse all

automatic restart for job in abend

Jump to Best Answer
  • 1.  automatic restart for job in abend

    Posted 09-15-2020 09:47 AM
    Hi everyone,
    in case of a job in ko is it possible to set an automatic rerun?


  • 2.  RE: automatic restart for job in abend

    Broadcom Employee
    Posted 09-15-2020 09:59 AM
    Hi @vincenzo manna

    You may need to use GET_UC_OBJECT_STATUS and RESTART_UC_OBJECT. Please see the links below.

    https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#Script/Reference/RESTART_UC_OBJECT.htm

    https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#Script/Reference/GET_UC_OBJECT_STATUS.htm


    Thanks
    Bobby


  • 3.  RE: automatic restart for job in abend

    Posted 09-16-2020 09:52 AM
    Hi @Bobby Tamayo,

    i have insert the string below in to POST PROCESS of my job, but if job ending ko or ok, then restarting anyway

    :SET &RET# = RESTART_UC_OBJECT ("TESTKO_RERUN",LAST,,"ONLY_ABENDED") ​


  • 4.  RE: automatic restart for job in abend
    Best Answer

    Posted 09-17-2020 01:56 AM
    Hi Vincenzo,

    if your job is in a workflow, you can use the "post-condition" to rerun a job if it fails.

    Best regards
    Bernhard

    ------------------------------
    Landeshauptstadt München
    ------------------------------



  • 5.  RE: automatic restart for job in abend

    Posted 9 days ago
    Hi @​Bernhard Flegel,
    even putting the rerun command in a job contained in a workflow, this always re-launches regardless of the state in which it ends


  • 6.  RE: automatic restart for job in abend

    Posted 8 days ago
    It is preferable to use a postcondition rule like this one;


    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------