Menu
CoddyTech
NewJourney

Learn COBOL Programming

Write real COBOL that GnuCOBOL compiles and checks, and see what it stores: every record byte by byte, every MOVE that pads or cuts. From your first DISPLAY to file reports and batch jobs with JCL.

138 lessons138 challenges129 quiz questions

Try a MOVE

COBOL keeps numbers as a fixed number of digits. Pick a value and a PICTURE, press MOVE and see what is kept and what is cut off.

A number like 1234.567, or text in quotes

MOVE 1234.567 TO R
Shows
23456
Means
234.56
Cut off
1, 7
  • Beginner friendly
  • sparkles iconAI-assisted coding help
  • hint iconHands-on interactive lessons
  • volume On iconAudio narration on every lesson
  • quiz iconQuizzes to test your knowledge
  • certificate iconFree certificate of completion

Syllabus

7 sections7 projects138 lessons138 challenges129 quiz questions
  1. Start sectionStartExpandCollapseWrite and run your first COBOL programs: the four divisions, fixed-format columns, DISPLAY, PIC X and PIC 9 fields, VALUE, MOVE, ACCEPT and a first COMPUTE. Then print a receipt line from typed input.

    Introduction

    5 lessons5

    Storing Data

    5 lessons105

    Input and Arithmetic

    5 lessons105

    Project: Receipt Line

    4 lessons4
  2. Start sectionStartExpandCollapseRecords built from level numbers, signs and implied decimals, the rules MOVE follows, edited pictures for money, the arithmetic verbs with ROUNDED and ON SIZE ERROR, and how numbers sit in storage. Then a payroll for one employee.

    Records

    4 lessons85

    Signs and Decimals

    4 lessons85

    Edited Pictures

    4 lessons85

    Arithmetic Verbs

    5 lessons105

    Numbers in Storage

    2 lessons45

    Project: Payroll

    4 lessons4
  3. Start sectionStartExpandCollapseIF and END-IF and why a period ends an IF, condition names with 88 levels, EVALUATE, paragraphs and PERFORM in every form, and why GO TO is avoided. Then a loan schedule.

    Decisions

    5 lessons105

    Condition Names

    5 lessons105

    Paragraphs and Loops

    6 lessons125

    Project: Loan Schedule

    4 lessons4
  4. Start sectionStartExpandCollapseTables with OCCURS, subscripts and indexes, SEARCH and SEARCH ALL, variable-length tables, REDEFINES and reference modification, STRING, UNSTRING, INSPECT and the intrinsic functions. Then parse transaction lines and total them by type.

    Tables

    5 lessons105

    Searching

    3 lessons65

    The Same Bytes Twice

    2 lessons45

    Text

    5 lessons105

    Project: Transactions

    4 lessons4
  5. Start sectionStartExpandCollapseRead and write files: SELECT and FD, OPEN, READ AT END, WRITE and CLOSE, FILE STATUS and the read loop. Print reports with headers, page breaks, totals and control breaks, and sort with SORT and MERGE. Then a bank statement.

    Reading Files

    5 lessons105

    Writing Files

    4 lessons85

    Reports

    5 lessons105

    Sorting

    4 lessons85

    Project: Bank Statement

    4 lessons4
  6. Start sectionStartExpandCollapseShare records with copybooks, split work into subprograms with CALL and the LINKAGE SECTION, keep data in indexed files read by key, and validate input so bad data never stops a run. Then update a customer master file.

    Copybooks

    2 lessons45

    Subprograms

    5 lessons105

    Indexed Files

    4 lessons85

    Validating Input

    2 lessons45

    Project: Master Update

    3 lessons3
  7. Start sectionStartExpandCollapseRun programs the way a mainframe runs them: a job of steps in JCL, DD statements and data sets, DISP, return codes, COND and IF, and reading an ABEND in the job log. Then a nightly batch, and what to learn next.

    Jobs

    4 lessons84

    Data Sets

    4 lessons85

    Return Codes

    3 lessons65

    When Jobs Fail

    3 lessons65

    Project: Nightly Batch

    5 lessons5
What you get
Everything you'll use to learn to code

Learn by Doing

Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.

playground.js
Code Editor
1const greeting = "Hello, Coddy!"
2function sayHi(name) {
3    return greeting + " " + name
4}
5
bottombar Collapse icon
Test #1test Case Success icon
Test #2test Case Success icon
Test #3test Case Failure icon
Input
"Alex"
Output
"Hello, Coddy! Alex"

Build Your Streak

Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.

12 days streak

Return tomorrow to keep your streak!

fire Filled icon
left icon

January 2026

right icon

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

21

22

23

24

25

26

27

28

29

30

product Double Or Nothing icon

Double or Nothing

Day 5 of 7

fire Freeze icon

Streak Freeze

2 left

You're Not Alone

Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!

Challenger League
Challenger LeagueTop 7 advance
leaderboard First icon1
avatar 1 icon
fire Filled icon
Alex7+ Days
2840
leaderboard Second icon2
avatar 2 icon
fire Filled icon
Jordan7+ Days
2650
leaderboard Third icon3
avatar 3 icon
fire Filled icon
Sam7+ Days
2420
4
avatar 4 icon
Casey
2180
5
avatar placeholder icon
fire Filled icon
Morgan7+ Days
1950
leaderboard Arrow Up iconPromotion zoneleaderboard Arrow Up icon

Every way to learn

Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.

Intro to Variables
Audio

A variable is a named container that stores a value you can reference later in your program.

In Python, you create one by writing the name, an equals sign, then the value you want to store.

The value can change over time. Reassigning the name simply points it to a new value.

1xSarah

Earn a Certificate

Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.

CoddyCertificate of Completion
This certifies thatJohn Doehas successfully completed
python iconPython Fundamentals
Verified
DateJan 2026
LinkedInAdd to LinkedIn

Why learn COBOL with Coddy

  • Real COBOL on a real compiler. GnuCOBOL, which understands IBM's COBOL dialect, compiles and checks every exercise, in the fixed format COBOL jobs use.
  • See what COBOL hides. The Data view draws each record as bytes under its PICTURE clause, with the implied decimal point and the sign.
  • Files and reports you can see: input records under a column ruler, and your report printed on green-bar paper.
  • When a program stops, a card says why in plain words, such as an S0C7 on bad numeric data, and points to the field and the line.

COBOL programming FAQ

Is COBOL still used?

Yes. Banks, insurers and governments still run large COBOL systems for accounts, payments, claims and payroll, mostly on IBM mainframes, and many plan to keep them for years. New projects rarely choose COBOL, so most COBOL work is keeping those systems running, changing them and moving parts of them to newer platforms.

Are there COBOL jobs?

Yes, mostly at banks, insurers, government agencies and the IT services firms that work for them. Job ads usually ask for JCL too, and often DB2, CICS and VSAM. This course teaches COBOL and the core of JCL; it does not teach DB2 or CICS. In Kyndryl's 2025 survey a third of firms reported COBOL and CICS skill gaps, and US salary sites such as Glassdoor and ZipRecruiter list COBOL developer pay at roughly $73,000 to $115,000 a year. The survey is a vendor's and the pay figures are estimates, so treat both as a guide.

Do I need a mainframe?

No. Your programs run on GnuCOBOL, an open source COBOL compiler that understands IBM's COBOL dialect, so you write COBOL the way mainframe programs are written. Where GnuCOBOL behaves differently from a mainframe, such as going on after a divide by zero, the course says so.

Do I need to know how to program first?

No. The course starts from what a program is and builds up one short lesson at a time.

What is JCL, and is it in the course?

JCL (Job Control Language) tells a mainframe which programs to run, in what order and with which data sets. The last section runs your programs as batch jobs from JCL and shows the job log with each step's return code. It covers the core statements, not all of JCL.

Do I get a certificate?

Yes. Each section gives a certificate of completion from Coddy that you can share on LinkedIn. It is not an IBM certification.

Coddy programming languages illustration

Learn COBOL Programming with Coddy

Get started