We use AutoSys for job scheduling, and I find myself writing a lot of JIL (job instruction language) scripts to delete boxes and re-insert them due to small job changes (e.g. start time, etc.). Is there an update command that can be used? CA's AutoSys cheat sheet has no information on one.
You can use the UPDATE_JOB. Take note that if you use this and your update is to remove the start_times (instead of just updating it), what you are going to do with your update_job jil is to still include the start_times entry but specify no value.
It is not possible to rename a job in AutoSys; one has to delete and re-insert the job and then update all its successors with the new name.
The jil command is a client component utility that runs the Job Information Language (JIL) processor. One advantage of using jil is that you can use available UNIX tools for file manipulation to create and control AutoSys Workload Automation job definitions.
In jil file we can write commands like insert_job, delete_job,update_job but sendevent is different command which should be triggered by autosys agent. So you can separately create executable file in which you can write that sendevent command and execute it through CLI. Thanks. thanks this works.
Yes,
It is the update_job: attribute.
Example to change the box BOX_A start time to 15:00 from 14:00
update_job: BOX_A
start_times: "15:00"
Save this into a file and run it using jil < filename.jil
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With