Mainframe Path Start learning free
Applied9 min readLesson 1 of 5

How workload scheduling works

JCL describes one job. A workload scheduler decides when thousands of jobs run, in what order, on which days, and what happens when one fails. Every scheduler — Control-M, TWSz, AutoSys, Stonebranch — is built from the same handful of ideas.

Why JCL alone is not enough

A bank's night might be 20,000 jobs: load the day's transactions, update accounts, calculate interest, produce statements, send files to partners. Many depend on each other, some run only on month end, and some must wait for a file from outside. Submitting that by hand is impossible, so a workload scheduler does it.

The building blocks

IdeaWhat it means
JobOne unit of work, usually a JCL member on z/OS or a script elsewhere
DependencyJob B waits until job A ends successfully
Calendar / run cycleWhich days a job runs: every working day, month end, the first Monday
ResourceSomething jobs share and must not overuse, such as a tape drive or a database lock
TriggerAn event that starts work, such as a file arriving
Daily planThe list of job instances scheduled for one business day
A small dependency chain
LOADTXNload transactions
UPDACCTupdate accounts
CALCINTinterest
STMTGENstatements

The business day is not the calendar day

Schedulers build a plan for each business day, often starting at a fixed time such as 06:00 rather than midnight. Control-M calls this the order date and the New Day process; TWSz builds a current plan from a long-term plan. A job that runs at 02:00 on Tuesday may belong to Monday's business day.

Statuses look different but mean the same

MeaningControl-MTWSzAutoSys
Waiting for somethingWait Condition / Wait TimeW (waiting) / A (arriving)AC (activated)
RunningExecutingS (started)RU (running)
Finished OKEnded OKC (complete)SU (success)
FailedEnded Not OKE (error)FA (failure)
Paused by a personHeldHeldOH (on hold)

Common mistakes

Confusing business day with calendar day

A job showing yesterday's date may be perfectly on time for its business day. Check the order date or plan date before raising an alarm.

Treating every job as equally urgent

Only jobs on the critical path delay the business deadline. Fix those first.

Adding dependencies by habit

Unneeded dependencies make the night longer. Every link should reflect a real data need.

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
Control-M →