Friday, 27 February 2026

What is JIL in AutoSys?

 


🔹 What is JIL in AutoSys?

JIL (Job Information Language) is the scripting language used in AutoSys to define jobs and their attributes.

You use JIL to:

  • Create jobs

  • Modify jobs

  • Delete jobs

  • Define schedules

  • Set dependencies

  • Control job behavior

It acts like a configuration script that tells AutoSys what to run, when to run, and how to run it.


🔹 Why is JIL Important?

Without JIL, AutoSys doesn’t know:

  • Which command/script to execute

  • On which machine to run

  • Who owns the job

  • When it should start

  • What conditions must be met before running

Think of JIL as the blueprint of a job.


🔹 Basic Structure of a JIL Job

Here’s a simple example of a Command Job:

insert_job: test_job
job_type: c
command: /home/user/test.sh
machine: server01
owner: user01
start_times: "10:00"
date_conditions: 1
description: "Test Command Job"

🔹 Explanation of Each Attribute

AttributeMeaning
insert_jobName of the job
job_typeType of job (c = command, b = box, f = file watcher)
commandScript or command to execute
machineServer where job runs
ownerUser who owns the job
start_timesTime when job runs
date_conditionsEnables scheduling
descriptionJob details

🔹 Types of Jobs in JIL

1️⃣ Command Job (job_type: c)

Runs a script or command.

2️⃣ Box Job (job_type: b)

Groups multiple jobs together.

3️⃣ File Watcher Job (job_type: f)

Triggers when a file arrives.


🔹 Example of Box Job with Dependency

insert_job: box_job1
job_type: b
start_times: "08:00"
date_conditions: 1

insert_job: job1
job_type: c
box_name: box_job1
command: /scripts/job1.sh
machine: server01
owner: user01

insert_job: job2
job_type: c
box_name: box_job1
command: /scripts/job2.sh
machine: server01
owner: user01
condition: s(job1)

Here:

  • job2 runs only if job1 succeeds.

  • s(job1) means success of job1.


🔹 How to Load JIL into AutoSys

  1. Save JIL file (example: job.jil)

  2. Run command:

jil < job.jil
  1. Check job:

autorep -J test_job

🔹 How AI Enhances JIL in AutoSys 🚀

Modern AI tools can help by:

  • Generating JIL scripts automatically

  • Detecting syntax errors

  • Suggesting dependency improvements

  • Predicting job failures

  • Optimizing schedules

  • Converting business requirements into JIL

Example:

If you tell AI:

"Create a job that runs daily at 6 AM and runs only if jobA succeeds"

AI can instantly generate:

insert_job: jobB
job_type: c
command: /scripts/jobB.sh
machine: server01
owner: user01
start_times: "06:00"
date_conditions: 1
condition: s(jobA)

No comments:

Post a Comment

Note: only a member of this blog may post a comment.