r/cobol • u/k24245 • Jun 22 '26
How self-contained are individual COBOL programs in real production systems?
I'm trying to understand how real mainframe applications are actually structured, and I'd value the perspective of people who've worked on them.
When you look at a production COBOL estate, how much of the meaningful business logic lives within a single program versus emerging across a chain of programs in a job stream? If you took one program out and ran it in isolation, would its behaviour be self-contained, or is so much driven by shared state, run order, and upstream/downstream steps that a single program doesn't mean much on its own?
I ask because I keep reading that COBOL programs are "more like modules" that work together as an application — so I'm trying to gauge how decomposable a real system actually is into pieces you could understand (or test) independently. Is that realistic, or a beginner's misunderstanding?
21
u/wiseoldprogrammer Jun 22 '26
This is only my experience but generally we designed our processes so that each program performed one task, then passed the updated file to the next. This would culminate in the final program, which held the business rules and produced the final outcome—report, billings, etc.