This project demonstrates a full CRUD application in COBOL using SQLite, running inside a Docker container.
The COBOL program executes SQL commands through the SQLite CLI, showing how old-school COBOL can still work with modern databases.
- Dockerized environment (Debian + GnuCOBOL + SQLite)
- SQL schema initialized with
init.sql - COBOL program performing Create, Read, Update, Delete (CRUD)
- No host dependencies (only Docker required)
cobol-sqlite/
│── docker-compose.yml # Docker services definition
│── Dockerfile # Build instructions for COBOL + SQLite
│── README.md # Project documentation
│── crud.cbl # COBOL CRUD program
│── init.sql # SQL script to create and seed the DB
docker compose up -d --builddocker exec -it cobol-sqlite bashsqlite3 employees.db < init.sqlcobc -x crud.cbl -o crud./crud- Replace SQLite with PostgreSQL or MySQL using ODBC.
- Wrap SQL calls in COBOL procedures for cleaner code.
- Extend with user input (interactive CRUD from terminal).
Maintained by Diego Botina
Because even COBOL deserves some modern love ⚡