COBOL — Command Reference
COBOL's most used commands — the legendary business language still running in banking and government systems. Programs are divided into divisions (DIVISION). Fixed format (indentation) is important. Each with an explanation and a working example.
5 categories · 7 commands
🖥️
Structure & Output
Program divisions and DISPLAY.
DISPLAY / DIVISIONs📦
Variables
WORKING-STORAGE, PIC, and MOVE.
PIC / variable definitionMOVE🔢
Arithmetic
COMPUTE, ADD, and FUNCTION MOD.
COMPUTE / ADDFUNCTION MOD🔀
Condition
Making decisions with IF.
IF / ELSE / END-IF🔁
Loop
Repetition with PERFORM.
PERFORM VARYING