COBOL (ISO/IEC 1989:2023)

This assessment applies the coupling account — coupling as access to a shared resource, and the coupling floor [1], [2] — and the knowledge-embodiment theorem [3]; the language is assessed against its official reference [4].

Snapshot COBOL (1989:2023) — released January 2023 · lifecycle current

Family COBOL — shelf: Legacy and Retro

The language is retained for systems already written in it; new work in it is the exception. A shelf groups; it does not classify — the tags below carry every use, paradigm, and platform of this snapshot.

Trajectory COBOL (1959 — CODASYL specification) · 2023 (January 2023 — ISO/IEC 1989:2023)

Tags

Use — Application

Paradigm — Imperative, Procedural

Platform — Native

Lifecycle — Current

Memory — Runtime-managed

Typing — Static, weak

Resources

The language’s official entry points, and the documents that name the release this page assesses. A link marked this release pins the document to COBOL (1989:2023); an unmarked link is the current reference for the language.

Landing page

Specification and reference

API documentation

Tutorial

1 Assessment

This page assesses COBOL in five parts: core coupling — what the language’s own constructs force; ecosystem coupling — what the surrounding platform, tooling, and community cost; engineering readiness — whether the artifact can be reproduced, verified, observed, worked in quickly, connected to other languages, and governed openly; the profile — the unscored facts a score cannot express; and the scoring detail — the mechanism marks and the arithmetic behind every score. A ✅ bullet marks a construct that helps. A ⚠️ or ❌ bullet marks a cost; the scoring model does not price every cost named here.

Core coupling 69.7/100 · Ecosystem coupling 71.1/100 · Engineering readiness 40.4/100

1.1 Core coupling

1.1.1 Type

  • ❌ Typing is weak and static: A PICTURE clause fixes an item’s shape, but a MOVE between items with different pictures converts the value silently, so the declared type does not protect it (T2)
  • ✅ The Data Division declares the shape once: Level numbers and PICTURE state each item’s size and category, and the Procedure Division uses that declaration without repeating it
  • ✅ Group items give a structured record: Level numbers nest elementary items inside groups, so a record layout is one declaration
  • ✅ Fixed decimal arithmetic is exact: COMP-3 packed-decimal operations do not accumulate binary floating-point error, so the numeric representation matches monetary values
  • ⚠️ USAGE decides the representation: COMP-3 (packed decimal), COMP (binary), and DISPLAY differ, and a move between them converts without a type error
  • ⚠️ An alphanumeric item accepts any character string: An X(n) item holds any text, so a category mistake is caught only by the program’s own checks

1.1.2 Construction

  • ❌ Every data item is visible to every paragraph: A WORKING-STORAGE item can be read and modified from any procedure, and before COBOL-85 the language offered no way to restrict access to it (C1)
  • ✅ The four divisions separate concerns: Identification, Environment, Data, and Procedure give each declaration a fixed place, so data definition does not share a space with program logic
  • ✅ CALL ... USING passes parameters to a subprogram: A called program receives its arguments explicitly, so a subprogram boundary is a declared interface
  • ✅ LOCAL-STORAGE gives per-call state: It is allocated for each invocation, so a re-entrant call does not share the state held in WORKING-STORAGE
  • ⚠️ PERFORM THRU names a range of paragraphs and passes nothing: The called region is a text span and the performed code communicates only through shared data items, with no parameter list and no call stack
  • ⚠️ GO TO and ALTER break structured flow: The language permits control transfers that obscure which paragraph runs next
  • ❌ One value, many names: CALL USING passes parameter addresses (documented), so the called program’s writes land in the caller’s storage (C6)
  • ❌ Execution moves with no call in sight: evaluate-on-name dispatch and the CALL ‘literal-name’ site resolve at run time to the program the string names (C7)

1.1.3 Memory

  • ✅ Ordinary program data needs no allocator: WORKING-STORAGE and LOCAL-STORAGE come from a declared layout, so a program that uses only them calls no allocator and no free
  • ✅ No garbage collector: Storage is fixed at compile time, so reclamation is deterministic and unobserved
  • ✅ OCCURS declares fixed-size tables: The size of a table is known at compile time
  • ⚠️ OCCURS DEPENDING ON varies a table’s length at run time: The logic then couples to the actual occurrence count
  • ⚠️ ALLOCATE and FREE put deallocation back on the programmer: The 2002 standard added dynamic allocation for tables and objects, and release is an explicit statement
  • ❌ Storage arrives undefined: a data item without a VALUE clause holds undefined content at program start, so every field the program does not initialize is a read of leftover bytes (M5)
  • ❌ Bytes can be read as a type they never were: REDEFINES lays a second data description over the same storage, and the program decides which layout governs (M6)
  • ❌ The undeclared class has no catch: an ABEND (documented) ends the program below the ON EXCEPTION surface (the runtime abend is not an exception the program declared) (Er6)

1.1.4 Error

  • ❌ Error handling has no structured path: USE AFTER STANDARD ERROR and other declaratives are declared globally in the DECLARATIVES section, and control may or may not return to the failing statement (Er1)
  • ✅ The declaratives section is separated from the main procedure: Recovery code is declared apart from the normal path
  • ✅ FILE STATUS reports I/O results as data: A file’s FILE STATUS item holds a two-character code that the program can test after each I/O statement
  • ✅ INVALID KEY and AT END put the failure case at the statement: READ ... INVALID KEY ... NOT INVALID KEY and AT END handle the result inside the operation itself
  • ❌ An error need not terminate the program: A declarative can return control after a failure, so a caller cannot rely on termination
  • ⚠️ No value carries the failure: There is no exception object and no result type, so detail travels only through shared items
  • ❌ A fault ends the program: a runtime error abends the program (documented); no recoverable boundary is declared (Er5)

1.1.5 Concurrency

  • ✅ Concurrency belongs to the transaction monitor: EXEC CICS and IMS link a program to a transaction environment instead of a language thread model
  • ✅ Batch steps are single-threaded by design: A batch program runs to completion without shared-memory concurrency
  • ✅ The 2023 standard defines asynchronous messaging: ISO/IEC 1989:2023 adds asynchronous message handling and transaction processing, so a program need not hand-roll that loop
  • ⚠️ The language has no threads or synchronisation primitives: Any parallel work couples the program to the monitor
  • ⚠️ Shared WORKING-STORAGE across transactions needs external discipline: A pseudo-conversational program must reset its state between transactions

1.1.6 Platform

  • ❌ A large share of production runs on IBM mainframes: Much COBOL executes on z/OS with IBM compilers, so practice is largely one vendor’s (P2)
  • ✅ The language is an ISO standard: ISO/IEC 1989:2023 is the current edition, so the language is not owned by a single vendor
  • ✅ GnuCOBOL is an independent compiler: It is an open-source project separate from GCC and translates COBOL to C
  • ⚠️ Vendor extensions bind a program to a compiler: EXEC CICS, EXEC SQL, and vendor libraries do not compile unchanged elsewhere
  • ⚠️ Newer standard features are unevenly implemented: The 2002 object-oriented features and the 2023 additions are not uniformly available across compilers

1.1.7 Trade-offs (not coupling)

  • The small standard library is a scope decision: The standard specifies 43 statements, 87 functions, and one class, and adds no general-purpose library beyond them
  • The fixed reference format comes from the punched card: Columns 1–6 hold a sequence number and column 7 an indicator, and free format is now permitted, so the old constraint is optional
  • Mainframe batch orientation is a scope decision: COBOL assumes file and transaction processing in a monitor, which suits high-volume work and excludes systems programming
  • The PICTURE-driven fixed record suits flat files: The declared layout matches a fixed-length record, which is a modelling choice for the domain
  • The installed base is a business constraint: Retaining legacy programs is an organisational decision, not a property of the language

1.2 Ecosystem coupling

1.2.1 Performance

  • ✅ Compiled ahead of time to native code: IBM Enterprise COBOL and GnuCOBOL (through generated C) produce machine code, so no interpreter and no JIT warm-up sits on the path
  • ✅ USAGE selects the representation per item: COMP-3 packs two digits per byte where compact storage matters
  • ✅ A batch step amortises start-up over millions of records: One run processes the whole job
  • ⚠️ Tuning is platform-specific: IBM’s optimiser and GnuCOBOL produce different code, so a tuned program does not transfer unchanged
  • ⚠️ Exact decimal arithmetic is slower than binary: COMP-3 operations cost more than native binary arithmetic

1.2.2 Ecosystem

  • ❌ The ecosystem is legacy and vendor-fragmented: IBM, Micro Focus, and GnuCOBOL each supply their own compiler, runtime, and tooling (Ec3)
  • ❌ The mainframe tooling is proprietary: The compilers, monitors, and debuggers are commercial products (Ec4)
  • ✅ GnuCOBOL is open source and maintained: It gives the language a free compiler
  • ✅ A long-lived body of documentation exists: The ISO standard and the vendor manuals are complete and stable over decades
  • ✅ The deployed base is enormous: Gartner reported over 200 billion lines of COBOL in 1997, and the language remains among the most widely deployed
  • ⚠️ The skills base is shrinking: Retirements reduce the pool of maintainers, a risk exposed by the COVID-era unemployment-systems crisis
  • ❌ A load module binds to a runtime release: IBM states that the COBOL Runtime Environment for AIX is required to deploy compiled COBOL applications into production and is ordered separately, and names the AIX releases its generated object programs run on [5] (Ec8)

1.2.3 Evolution

  • ✅ The standard is backward compatible across decades: COBOL-74, -85, 2002, 2014, and 2023 code coexist, and programs written decades ago still compile
  • ✅ ISO/IEC 1989:2023 added modern features: Asynchronous messaging, transaction processing, and dynamic-capacity tables join the language
  • ⚠️ Revisions are infrequent: A new standard edition arrives at intervals of a decade or more, so a needed feature waits a long time
  • ⚠️ Adoption of a new feature is uneven: A compiler may not implement a standard feature for years after publication

1.2.4 Domain

  • ❌ Strong lock-in to mainframe transaction and batch processing: The language assumes fixed records, files, and a monitor runtime, so code carries that shape outside its home domain (D1)
  • ✅ Superb for high-volume batch and transaction processing: The fit to financial and administrative workloads is close
  • ✅ Still runs the bulk of card-payment background processing: The source reports COBOL behind most credit and debit-card swipe processing
  • ✅ Fixed-point decimal arithmetic fits money: The data model matches monetary computation without floating-point error
  • ⚠️ Poor for nearly everything else: Interactive, systems, and scientific work have little COBOL tooling

1.2.5 Learning

  • ❌ The learning curve is steep in practice: Verbosity and over 300 reserved words must be learned (L1)
  • ✅ The syntax is English-like: MOVE A TO B, ADD ... GIVING, IF ... END-IF, and DISPLAY read close to prose
  • ✅ The division structure is a fixed learning path: Four divisions in a defined order give a predictable place for each declaration
  • ⚠️ The vocabulary is large: More than 300 reserved words, and each verb carries many optional clauses
  • ⚠️ The tooling is not beginner-friendly: Mainframe editors, JCL, and compile procedures are learned separately from the language

1.2.6 Syntax

  • ❌ Verbose: Every statement names its verb and its operands, and paragraphs need explicit names (S1)
  • ✅ English-like and self-describing: The verb names the operation, so a statement is readable without symbol decoding
  • ✅ END-IF, END-PERFORM, and END-READ bound a scope: Explicit terminators remove the ambiguity of implicit scope
  • ⚠️ Fixed-format column rules still shape style: Column 7 is an indicator and the code sits in columns 8–72 in the classic reference format, and free format is an option
  • ⚠️ The four-division prologue is long: Even a minimal program declares Identification, Environment, Data, and Procedure

1.2.7 Testing

  • ✅ FILE STATUS and INVALID KEY give checkable I/O outcomes: A test can assert on the status item after a file operation
  • ✅ Compilers supply tracing and dump facilities: IBM Debug Tool and GnuCOBOL’s runtime tracing report execution, and COB_SET_TRACE enables a trace at run time
  • ✅ GnuCOBOL runs on ordinary workstations: The open-source compiler executes test jobs locally
  • ⚠️ No test framework is in the language or the standard: A harness is external, so a suite couples to the tooling
  • ⚠️ A batch test needs representative data: The job needs real files and JCL, not just a unit of code
  • ❌ No monotonic reading published in the language: the runtime functions IBM names are the wall, and the standard ships no elapsed reading (G4)

1.2.8 Security

  • ✅ Fixed PICTURE sizes bound every item: An oversized source value is truncated or padded on assignment rather than overrunning a buffer
  • ✅ No pointers in the classic language: A COBOL program cannot forge an address
  • ✅ The transaction monitor authorises access: CICS and RACF check a transaction’s resource use
  • ⚠️ Truncation is silent: A value that does not fit an item is truncated without an error, so data can be lost quietly
  • ⚠️ Dynamic SQL is injectable unless host variables are used: EXEC SQL with host variables is parameterised, but a statement built from a string re-opens SQL injection
  • ❌ Arithmetic on a PICTURE-clause field truncates the high-order digits, defined by ISO COBOL and silent (Q4)

1.2.9 Delivery targets

What ships from a producer to a consumer, and whether the interface across a release boundary is promised. Ec8 is present when one compiled target crosses with no promise.

Target Ships as Crosses a producer boundary Cross-release promise
source program source no A site compiles the source with the compiler release it installs
load module compiled yes no — IBM states that the COBOL Runtime Environment for AIX is required to deploy applications built with COBOL for AIX into production, is ordered separately, and names the AIX releases its generated object programs run on [5]

1.3 Engineering readiness

1.3.1 Reproducibility

  • ❌ No contract the compiler reads: JCL names the datasets for the run, and the compiler validates none of a project’s dependency or version contract (Y18)

1.3.2 Supply chain

  • ❌ Copybooks and mainframe artifacts move without signature checks. (Y3)
  • ❌ No advisory feed joins CVEs to the runtime and tools. (Y16)
  • ⚠️ The copybook library is the shared resource; its registry is the installation.

1.3.3 Observability

  • ❌ No tracing standard exists in the language. (Y5)
  • ❌ DISPLAY is the whole logging surface. (Y6)
  • ❌ Abends produce a dump only where the installation configures one. (Y15)

1.3.4 Feedback

  • ❌ No debugger ships with the compiler; the mainframe interactive tools are separate products. (Y13)

1.3.5 Interop

  • ❌ The artifact runs where a COBOL compiler and runtime for the dialect exist. (Y10)

1.3.6 Governance

  • ✅ ISO/IEC WG4 maintains the standard through an open national-body process. (Y11)
  • ✅ ISO/IEC 2002 (COBOL 2014… the 2023 revision) is published. (Y12)
  • ✅ The NIST conformance suites historically checked COBOL compilers against the standard. (Y17)

1.4 Profile

Unscored, and kept separate from every score on purpose. The profile records what a mechanism price cannot express: what a running program costs, how well a coding model and an agent work in the language, and whether a safety-critical path exists.

1.4.1 Energy and cost

What this axis asks: what does a running program cost in energy and time?

  • ✅ Compiles to native code: the fastest class in the language energy and time benchmarks [6], [7]. A causal re-analysis attributes the difference to execution time [8].

1.4.2 AI and agent readiness

What this axis asks: how well does a coding model and an agent work in this language?

  • ❌ Sparse training data: models write it unreliably [9].

1.4.3 Safety certification

What this axis asks: is there a certified or standards-qualified path to a safety-critical system?

  • ⚠️ No certified or standards-qualified path for safety-critical systems.

1.5 Scoring detail

1.5.1 Core coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Type T1 dynamic no static check language — 0
T2 weak static language ✅ −8
T3 dynamic/duck dispatch language — 0
T4 no sum types language — 0
T5 no generics language — 0
T6 no namespaces language — 0
T7 type erasure/reflection language — 0
T8 operator overloading language — 0
T9 inheritance required for polymorphism language — 0
T10 no null-safety language — 0
T11 no module boundary language — 0
T12 no effect tracking language ✅ −8
T13 async/sync colouring language — 0
T14 unchecked foreign boundary language ✅ −4
T15 chars are encoding units language — 0
Type cost −5.7 (−20)
Construction C1 global mutable state by default language ✅ −15
C2 no immutability by default language — 0
C3 constructors coupled to allocation language — 0
C4 no constructor/validation language — 0
C5 unpinned collection order language — 0
C6 aliasing by default language ✅ −8
C7 undeclared control transfer language ✅ −8
C8 no source-visible init order language — 0
Construction cost −8.9 (−31)
Memory M1 manual deallocation runtime — 0
M2 GC non-deterministic pauses runtime — 0
M3 no RAII language — 0
M4 no ownership model language — 0
M5 uninitialized reads language ✅ −8
M6 unchecked reinterpretation language ✅ −8
Er6 uncatchable runtime fault language ✅ −8
M7 reference cycles leak runtime — 0
Memory cost −6.9 (−24)
Error Er1 no structured path language ✅ −15
Er2 unchecked exceptions only language — 0
Er3 errors ignored/non-exhaustive language — 0
Er4 no composable result type language — 0
Er5 no isolation unit for a fault runtime ✅ −8
Error cost −6.6 (−23)
Concurrency K1 GIL/no parallel runtime — 0
K2 shared mutable state default language — 0
K3 manual sync no race detection runtime — 0
K4 no structured concurrency language — 0
K5 no primitives language — 0
K6 thread-per-task cost runtime — 0
Concurrency cost 0
Platform P1 cannot function outside one vendor/domain context — 0
P2 single-vendor but other uses context ✅ −8
P3 legacy/discontinued platform context — 0
P4 poor domain fit context — 0
Platform cost −2.3 (−8)

Core coupling score: 69.7/100 — 106 of the 350 inventory points are present, so the axis cost is 100 × 106 ÷ 350 = 30.3 and the score is 100 − 30.3. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.2 Ecosystem coupling Dimensions

Dimension Mechanism Description Imposed by Present Weight
Performance R1 interpreted no AOT/JIT runtime — 0
R2 GC pauses runtime — 0
R3 JIT warmup runtime — 0
Performance cost 0
Ecosystem Ec1 no package manager context — 0
Ec2 fragmented tooling context — 0
Ec3 small/niche/discontinued context ✅ −8
Ec4 proprietary context ✅ −8
Ec5 platform-locked tooling context — 0
Ec6 monoculture context — 0
Ec7 legacy burden context — 0
Ec8 unpromised binary boundary context ✅ −8
Ec9 unpromised data boundary context — 0
Ecosystem cost −9.4 (−24)
Evolution V1 breaking changes language — 0
V2 frozen context — 0
V3 discontinued context — 0
V4 glacial standards context — 0
V5 silent default drift runtime — 0
V7 build-variant state space context — 0
Evolution cost 0
Domain D1 domain/vendor lock-in context ✅ −15
D3 framework forces architecture context — 0
Domain cost −5.9 (−15)
Learning L1 steep context ✅ −8
L2 large surface/multi-paradigm context — 0
L3 sparse docs context — 0
Learning cost −3.1 (−8)
Syntax S1 verbose language ✅ −8
S2 inconsistent language — 0
S3 punctuation-heavy language — 0
Syntax cost −3.1 (−8)
Testing G1 weak tooling context — 0
G2 poor debugging context — 0
G3 runtime-only errors context — 0
G4 no published monotonic clock runtime ✅ −4
Testing cost −1.6 (−4)
Security Q1 memory-unsafe language — 0
Q2 dynamic/weak typing risk language — 0
Q3 known vulnerability/injection context — 0
Q4 silent integer overflow language ✅ −15
Security cost −5.9 (−15)

Ecosystem coupling score: 71.1/100 — 74 of the 256 inventory points are present, so the axis cost is 100 × 74 ÷ 256 = 28.9 and the score is 100 − 28.9. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

1.5.3 Engineering readiness Dimensions

Dimension Mechanism Description Imposed by Present Weight
Reproducibility Y1 build not reproducible context ✅ −15
Y2 dependencies not pinned context ✅ −8
Y14 no toolchain version pin context ✅ −8
Y18 no machine-read project contract context ✅ −8
Reproducibility cost −22.8 (−39)
Supply chain Y3 no signed provenance context ✅ −15
Y4 registry without namespacing context — 0
Y16 no advisory feed context ✅ −8
Supply chain cost −13.5 (−23)
Observability Y5 no stable tracing standard context ✅ −8
Y6 no structured logging context ✅ −4
Y15 no post-mortem diagnostics runtime ✅ −8
Observability cost −11.7 (−20)
Feedback Y7 slow build context — 0
Y8 no fast in-editor analysis context — 0
Y13 no bundled debugger context ✅ −8
Feedback cost −4.7 (−8)
Interop Y9 no foreign-function interface language — 0
Y10 no portable target context ✅ −4
Interop cost −2.3 (−4)
Governance Y11 single-vendor governance context — 0
Y12 closed specification context — 0
Y17 no conformance mechanism context — 0
Y19 no published parser context ✅ −8
Governance cost −4.7 (−8)

Engineering readiness score: 40.4/100 — 102 of the 171 inventory points are present, so the axis cost is 100 × 102 ÷ 171 = 59.6 and the score is 100 − 59.6. Each dimension’s cost above is its share of the same denominator, and the raw weight sum follows in parentheses.

Verdict: COBOL’s two scores are deliberately even: its own constructs impose about as much coupling as its platform and ecosystem do. The four divisions and the PICTURE clause declare a record once, CALL ... USING gives a subprogram an explicit parameter interface, and LOCAL-STORAGE gives per-call state, but the default visibility of every data item to every paragraph, the paragraph-range semantics of PERFORM THRU, and error handling by declaratives that may not terminate the program make global coupling the norm. The platform side is legacy, vendor-fragmented, and locked to mainframe transaction processing, with a shrinking skills base. Inside high-volume batch and transaction processing COBOL is excellent; outside that niche the fit is poor.


The formal development. The definitions, theorems, and proofs behind this page are published in:

All published papers

References

[1]
Y. Loth, “On the nature of coupling: All coupling as shared resource access.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925121.
[2]
Y. Loth, “Coupling as a consequence of cohesion: Decomposition, the coupling floor, and domain-imposed coupling.” Zenodo, Aug. 2026. doi: 10.5281/zenodo.21925201.
[3]
Y. Loth, “On the nature of cohesion: Cohesion as correctness relative to a partitioning rule.” Zenodo, Jul. 2026. doi: 10.5281/zenodo.20492912.
[4]
ISO/IEC JTC 1/SC 22, “Information technology — programming languages — COBOL.” International Organization for Standardization; International Standard ISO/IEC 1989:2023 (COBOL 1989:2023), Geneva, Switzerland, 2023.
[5]
IBM Corporation, “IBM COBOL for AIX — product summary: Runtime environment requirement and software requirements.” IBM Corporation, 2026. Accessed: Oct. 26, 2026. [Online]. Available: https://www.ibm.com/products/cobol-compiler-aix
[6]
R. Pereira et al., “Energy efficiency across programming languages: How do energy, time, and memory relate?” in Proceedings of the 10th ACM SIGPLAN international conference on software language engineering (SLE), 2017, pp. 256–267. doi: 10.1145/3136014.3136031.
[7]
R. Pereira et al., “Ranking programming languages by energy efficiency,” Science of Computer Programming, 2021, doi: 10.1016/j.scico.2021.102609.
[8]
N. van Kempen, H.-J. Kwon, D. T. Nguyen, and E. D. Berger, “It’s not easy being green: On the energy efficiency of programming languages,” in Proceedings of the 40th IEEE/ACM international conference on automated software engineering (ASE), 2025. doi: 10.1109/ASE63991.2025.00131.
[9]
S. Joel, J. J. Wu, and F. H. Fard, “A survey on LLM-based code generation for low-resource and domain-specific programming languages,” ACM Transactions on Software Engineering and Methodology, 2025, doi: 10.1145/3770084.