Testing mainframe and legacy batch systems
Test an overnight job. Check its output, its order, a half-finished night and a safe rerun, even on an old system nobody fully remembers.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: the night cleaning crew. An office is cleaned every night when nobody is there. The crew has a checklist: empty the bins, then vacuum, then lock up. The order matters. Vacuuming before the bins are done makes a mess. Suppose the crew is stopped at two in the morning. The next night they must not skip the vacuuming. They must not do the bins twice for no reason.
Daily List is a to-do list app. Every night a runs: a program that works on its own over many records at once, with nobody at a screen. This one tidies all the accounts. It removes old reminders and writes a summary file.
Tom need not supervise every record, but can observe logs, metrics and checkpoints during controlled test runs. So he asks three questions. Did it leave the right result? Did it run in the right order? What happens if it stops half way?
Some companies run their big nightly jobs on a mainframe, a high-performance computer platform built for large transaction and batch workloads, including current modern systems. Such systems are called legacy systems, which means they are old but still needed.
The crew picture has limits. A crew member can say "I'll finish this tomorrow". A program does exactly what its instructions say.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
Legacy describes an existing system and its constraints, not a requirement that the hardware be obsolete. Modernisation tests must preserve the agreed business outcomes, while identifying known historical defects rather than blessing every old output as correct.
PLAIN WORDS · 3 in this section
- supervise
- oversee and check that others follow the rules
- checkpoints
- points along the way where a payment is checked
- modernisation
- bringing up to date
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Checking an overnight job by looking at what it leaves behind, the order it ran in, a half-finished night and a safe second run.
- Check the result
- Check the order
- Stop it half way
- Run it again
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The cleaning checklist | The batch job's steps |
| Bins before vacuum | A job dependency |
| Stopped at two in the morning | A job that fails part way |
| Carrying on from the right room | A restart from a checkpoint |
| Not emptying the bins twice for no reason | A safe rerun with no duplicates |
WHERE THIS PICTURE STOPS
- A crew member can say "I'll finish tomorrow". A program does exactly what it is told.
- A crew can see which rooms are done. A job needs a saved note to know.
- Cleaning twice is only wasteful. Running a job twice can double real records.
- Batch execution is observable through logs and metrics; replay safety depends on outputs and side effects, not exit status alone.
HOOK
Check the mess left, the order, the stop and the second try.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
If a night job could stop at two in the morning, usually stop it half way once, run it again, then check for records done twice.
| In the trick | What it stands for |
|---|---|
| Stop it half way | A job that fails part way |
| Run it again | A safe rerun with no duplicates |
Batch execution is observable through logs and metrics; replay safety depends on outputs and side effects, not exit status alone.
TELL A FRIEND
A night cleaning crew with a checklist, stopped at two in the morning.
OFTEN MIXED UP WITH Work that happens later: jobs and queues. The background jobs lesson covers work that runs behind the scenes. This lesson is about big overnight runs on old systems, and about restart and rerun.
Sources & standards — 3 sources
- Market practice
What is a mainframe? ↗ — IBM · Actual current definition/history excerpts reviewed, updated3September2026. Modern resilient high-volume transaction/batch platforms are not defined simply as old hardware. Promotional superiority/transaction guarantees are not universal application correctness claims.
Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.
- Market practice
Jobs retries (Google Cloud Run documentation) ↗ — Google Cloud · Actual complete substantive guide reviewed, updated30October2026: repeat-safe outputs,input retention and persistent checkpoints. Analyse stable partition/atomic progress before copying filtered processed-row plus OFFSET example, which can skip work when the filtered set mutates.
Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.
- Market practice
Batch comparison overview (Google Cloud Dual Run documentation) ↗ — Google Cloud · Actual complete substantive guide reviewed, updated 26 October 2026: same-input outputs, formats/encoding, reviewed tolerances and full/partial/missing matches. Branded source image examined privately; the page licence does not automatically license Google Cloud brand features. Source figure link-only in this lane.
Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.
PRACTISE AND KEEP
Sources for this topic — 3 sources
- Market practice
What is a mainframe? ↗ — IBM · Actual current definition/history excerpts reviewed, updated3September2026. Modern resilient high-volume transaction/batch platforms are not defined simply as old hardware. Promotional superiority/transaction guarantees are not universal application correctness claims.
Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.
- Market practice
Jobs retries (Google Cloud Run documentation) ↗ — Google Cloud · Actual complete substantive guide reviewed, updated30October2026: repeat-safe outputs,input retention and persistent checkpoints. Analyse stable partition/atomic progress before copying filtered processed-row plus OFFSET example, which can skip work when the filtered set mutates.
Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.
- Market practice
Batch comparison overview (Google Cloud Dual Run documentation) ↗ — Google Cloud · Actual complete substantive guide reviewed, updated 26 October 2026: same-input outputs, formats/encoding, reviewed tolerances and full/partial/missing matches. Branded source image examined privately; the page licence does not automatically license Google Cloud brand features. Source figure link-only in this lane.
Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.