Mainframe Path Start learning free
Applied9 min readLesson 2 of 5

Control-M

Control-M from BMC is one of the most widely used workload schedulers. It runs and monitors jobs on z/OS, Linux, Windows and cloud services from one place, and links them with conditions.

The pieces

Folders, jobs and conditions

Jobs live in folders (older versions called them tables). Dependencies are expressed as conditions: when a job ends OK it adds an out-condition such as LOADTXN-ENDED-OK; the next job lists that as an in-condition and waits for it. Conditions carry the order date (ODAT), so Monday's jobs wait for Monday's conditions.

Conditions link jobs
LOADTXNout: LOADTXN-OK
conditionLOADTXN-OK, ODAT
UPDACCTin: LOADTXN-OK

Everyday actions

ActionWhat it does
Hold / FreePause a job before it runs, then release it
RerunRun a failed job again, optionally from a step
Set to OKMark a job as ended OK without running it — use with care
WhyShows what the job is still waiting for
Order / ForceAdd a job to today's plan; Force ignores its scheduling criteria
Log / OutputRead the job's history and its sysout

Jobs as code

The Control-M Automation API lets teams define jobs in JSON, keep them in Git and deploy them through a pipeline, just like application code.

A job defined in JSON (Automation API)
{
  "PAYROLL_NIGHT": {
    "Type": "Folder",
    "LOADTXN": {
      "Type": "Job:Command",
      "Command": "/apps/pay/bin/loadtxn.sh",
      "RunAs": "payops",
      "Host": "payhost01"
    }
  }
}

Common mistakes

Ordering a job twice

Forcing a job that is already in today's plan creates a second copy that may run and duplicate output. Check the plan first.

Deleting conditions to unblock work

Removing or adding conditions by hand changes what runs. Use Why to understand the wait, then fix the cause.

Ignoring the order date

A condition with the wrong ODAT will never satisfy the waiting job. Check dates when a job waits forever.

What you will see at work

Key terms

Check your understanding.
Take this lesson's quiz and save your progress. Free.

Take the lesson quiz
← How workload scheduling worksIBM Z Workload Scheduler, IWS and DWC →