AutoSys Command Job Dependent Another Job

AutoSys Command Job Dependent Another Job

In AutoSys it’s very common to execute job based on success of another job. Below is an example of one command job “JavaHonkNotifier_c” will execute based on success condition of another job “JavaHonkProcessDiv_c”:

/* ----------------- JavaHonkNotifier_c  dependency on JavaHonkProcessDiv_c----------------- */

insert_job: JavaHonkNotifier_c  job_type: c
owner: JavaHonk@JavaHonk
machine: JavaHonk.wellsfargo.com
command: /apps/otc/swapDividendPaymentNotifier-1.0-SNAPSHOT/scripts/run-script.sh UAT start
permission: gx,ge,wx,we,mx,me
description: "Load Dividend data"
condition: s(JavaHonkProcessDiv_c)
term_run_time: 60
alarm_if_fail: 1
std_out_file: /apps/otc/swapDividendPaymentNotifier-1.0-SNAPSHOT/logs/JavaHonkNotifier_c.out
std_err_file: /apps/otc/swapDividendPaymentNotifier-1.0-SNAPSHOT/logs/JavaHonkNotifier_c_err.out
application: JavaHonk

/* ----------------- JavaHonkProcessDiv_c ----------------- */

insert_job: JavaHonkProcessDiv_c   job_type: c
box_name: BATCH_DivBatch_Box
command: ${JavaHonk_BATCH_HOME_PATH}/bin/ProcessDividends.ksh -trundiv
machine: JavaHonk.wellsfargo.com
owner: JavaHonk@JavaHonk
permission: gx,ge
condition: s(JavaHonkProcessDiv_w)
description: "JavaHonk process file for the current date.."
std_out_file: ${JavaHonk_BATCH_HOME_PATH}/logs/JavaHonkProcessDiv_c.`date +%Y%m%d.%H%M`.out
std_err_file: ${JavaHonk_BATCH_HOME_PATH}/logs/JavaHonkProcessDiv_c.`date +%Y%m%d.%H%M`.err
alarm_if_fail: 1
application: JavaHonk

Reference:

One thought on “AutoSys Command Job Dependent Another Job”
  1. Hi – I have an issue that I need help with. Job B is dependent upon the success of Job A. Job A completes with SUCCESS, Job B starts. Before Job B ends, Job A runs and completes with SUCCESS again. Job B then completes. I need Job B to start again, but it does not. Is there any way to deal with this situation?

Leave a Reply

Your email address will not be published. Required fields are marked *