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)

Top 10 AutoSys Interview Questions

 

  • What is AutoSys and how does it work?
    AutoSys is an automated job scheduling and workload automation tool used to define, schedule, and monitor jobs across systems and platforms. It runs jobs based on schedules and conditions defined by the user.

  • What are the main types of jobs in AutoSys?
    Common job types include:

    • Command job — executes a script or command

    • Box job — a container that groups multiple jobs

    • File watcher job — triggers when a file arrives or changes.

  • How do you create a job in AutoSys?
    Jobs are created using Job Information Language (JIL), which defines attributes like job type, command, schedule, owner, and machine.

  • What is JIL in AutoSys?
    JIL (Job Information Language) is the syntax used to define job attributes and behavior in AutoSys. It’s how you write job definitions to insert, update, or delete jobs.

  • What is a Box Job?
    A Box job groups several related jobs so they can be managed together. Jobs inside the box run based on defined dependencies and can be controlled as a unit.

  • How is scheduling defined in AutoSys?
    You configure schedules using date/time conditions or calendars to run jobs daily, weekly, or monthly at specific times.

  • What are common job statuses in AutoSys?
    Jobs can have statuses such as INACTIVE, ACTIVATED, RUNNING, SUCCESS, FAILURE, ON_HOLD, ON_ICE, WAITING, etc., which help track execution progress.

  • What does the ON_HOLD status mean?
    ON_HOLD prevents a job from running until manually released, useful during maintenance or when dependencies aren’t ready.

  • What is a Jobstream?
    A jobstream is a sequence of AutoSys jobs linked by dependencies, so one job triggers the next according to conditions and order rules.

  • How do you check the status of a job in AutoSys?
    You can use commands like autorep -J job_name to view job details and statuses from the command line. Many interview guides also list specific commands to check statuses.