HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to COBOLVariablesArithmeticConditions (IF)Loops (PERFORM)
REFERENCE
📖 Overview
🖥️ Structure & Output
📦 Variables
🔢 Arithmetic
🔀 Condition
🔁 Loop
COBOL›REFERENCE

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
1 commands →
📦

Variables

WORKING-STORAGE, PIC, and MOVE.

PIC / variable definitionMOVE
2 commands →
🔢

Arithmetic

COMPUTE, ADD, and FUNCTION MOD.

COMPUTE / ADDFUNCTION MOD
2 commands →
🔀

Condition

Making decisions with IF.

IF / ELSE / END-IF
1 commands →
🔁

Loop

Repetition with PERFORM.

PERFORM VARYING
1 commands →
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code