COBOL Cheat Sheet

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

The reference material consulted while preparing these pages is listed in the section bibliography.

A single-page, colour-coded summary of COBOL and its toolchain, written against ISO/IEC 1989:2023 (edition 3), GnuCOBOL 3.2 and IBM Enterprise COBOL for z/OS 6.5 on z/OS 3.2 (checked 2026-10-20) — the cobc and IBM compile options, the fixed-format ruler, the program skeleton, the data division with the PICTURE and USAGE tables and a packed-decimal nibble diagram, tables, the main statements, error handling, files with the key file status codes, SORT and MERGE, subprograms, JSON and XML, JCL, Db2, CICS, the common abends, tooling and testing, and a strip of legacy features and their modern replacements — handy for quick memorization or as a downloadable PDF desk reference.

For the full explanation, every option, and additional examples, see the dedicated pages:

Start here — COBOL Reference.

Data interchange — JSON GENERATE and PARSE and XML GENERATE and PARSE.