Mainframe Path Start learning free
Beginner7 min readLesson 3 of 4

The stack, from metal to your program

Between the physical machine and the COBOL program you will eventually write, there are about five layers. Knowing their names makes almost every other conversation on this platform easier to follow.

The layers

From hardware up to your code
Your programCOBOL, PL/I, Java, Assembler, REXX — the business logic
SubsystemsCICS, DB2, IMS, MQ — services your program calls
z/OSThe operating system: dispatching, storage, I/O, security
LPARA logical partition — a slice of the machine that acts as its own computer
PR/SM hypervisorDivides the physical machine into LPARs, in firmware
The machine (CPC)Processors, memory, channels, coupling links

What each one does for you

A concrete path

When a customer taps their card, the request typically arrives over the network into a CICS region running under z/OS in one LPAR of a physical machine. CICS starts a transaction, which runs your COBOL program, which issues SQL to DB2 and returns an answer. All six layers above are involved in something that takes a few milliseconds.

A card authorisation, layer by layer
Network inRequest reaches the LPAR
CICSStarts a transaction
Your programBusiness rules
DB2Reads the balance
ResponseApprove or decline

Common mistakes

Calling everything 'the system'

Being precise about the layer — LPAR, z/OS, CICS region, DB2 subsystem — is what makes you quick to help and easy to work with.

Assuming one LPAR equals one machine

A single machine commonly runs a dozen or more LPARs: production, development, test, and often other companies' work at a service provider.

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
← Why organisations still run themBatch and online: the two shapes of work →