How add execute window batch file AutoSys

How add execute window batch file AutoSys

To add and execute winow batch file from AutoSys job is same as Unix, only difference is in command section you will have to specify window batch file path location as mentioned in same job below:

Note: Before adding window script and use in AutoSys, its very important to add window machine to AutoSys instance/environment otherwise if machine is not added, you will get machine not found exception. Also if you have other support files in other folder then use absolute path of those folder in your batch file because relative path may not work while using with AutoSys.

  • First create your run script and test it in window environment using command prompt. If its working correctly then add its location in JIL FIle.
  • Create you JIL File:
insert_job: javahonk_Window_c  job_type: c
owner: AutosysUAT@ad-ent
machine: inst265874.com
command: C\:\javahonk\scripts\run-UAT-script.bat
permission: gx,ge,wx,we,mx,me
description: "Load Swap Dividend data"
condition: s(JavaHonkProcessDiv_c)
term_run_time: 60
alarm_if_fail: 1
std_out_file: C\:\javahonk\logs\javahonk_c.log
std_err_file: C\:\javahonk\logs\javahonk_c_err.log
application: JAVAHONK

I assume you have access to AutoSys box and to add JIL file please use below:

$ jil < yourFile.jil

Leave a Reply

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