Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AutoSys scheduler update JIL

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.

like image 304
goric Avatar asked Sep 26 '09 17:09

goric


People also ask

How do I update my Jil AutoSys job?

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.

Can we update job name in AutoSys?

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.

What is Jil command in AutoSys?

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.

How do I run a Jil file in AutoSys?

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.


1 Answers

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

like image 56
clmccomas Avatar answered Oct 24 '22 05:10

clmccomas