Language

COBOL

First appeared
1959
Paradigm
Imperative, procedural
Toolchain
GnuCOBOL 3.2
Container image
debian:trixie-20261027-slim + gnucobol3 3.2-3

COBOL (COmmon Business-Oriented Language) was designed in 1959 by a committee drawing heavily on Grace Hopper’s FLOW-MATIC. It still runs a large share of banking and government systems, and it was built for this kind of work: reading records and doing exact decimal arithmetic. It even has MEAN, MEDIAN, VARIANCE, and STANDARD-DEVIATION intrinsic functions; the from-scratch versions avoid them. GnuCOBOL compiles each program to C and builds it with gcc.

Quirks

Concepts in COBOL

Run the examples locally

You need Docker and Python 3. The harness builds the pinned container and runs every COBOL example:

git clone https://github.com/qnixon/dswithx.git
cd dswithx
python3 harness/run_tests.py --language cobol