AutoSys Workload Automation

 View Only
  • 1.  How to treat JOB created with wrong argument as fail in WADE

    Posted Aug 13, 2019 09:18 PM
    ​The JOB is created with the argument is entered incorrectly and executed as a schedule or trigger,and then the JOB is executed successfully.
    But the argument is wrong and no result is returned.

    Is there a way to handle JOB FAIL with argument errror?

    Thanks


  • 2.  RE: How to treat JOB created with wrong argument as fail in WADE
    Best Answer

    Broadcom Employee
    Posted Aug 14, 2019 01:22 AM
    Hi,

    It depends on the script or command that is executing. If there is wrong argument but the script returns error code 0 , DE job considers it as COMPLETE. 
    If your script can return any other exit code then you can define the Exit Codes in Job Definition and based on it you can consider if the job should be COMPLETE or FAILED.

    Ravi Kiran