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
AI-assisted coding help
Hands-on interactive lessons
Audio narration on every lesson
Quizzes to test your knowledge
Free certificate of completion
Syllabus
Section 1
First Programs
Start sectionStartWrite 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 lessons5Storing Data
5 lessons105Input and Arithmetic
5 lessons105Project: Receipt Line
4 lessons4Section 2
Data and Numbers
Start sectionStartRecords 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 lessons85Signs and Decimals
4 lessons85Edited Pictures
4 lessons85Arithmetic Verbs
5 lessons105Numbers in Storage
2 lessons45Project: Payroll
4 lessons4Section 3
Decisions and Loops
Start sectionStartIF 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 lessons105Condition Names
5 lessons105Paragraphs and Loops
6 lessons125Project: Loan Schedule
4 lessons4Section 4
Tables and Text
Start sectionStartTables 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 lessons105Searching
3 lessons65The Same Bytes Twice
2 lessons45Text
5 lessons105Project: Transactions
4 lessons4Section 5
Files and Reports
Start sectionStartRead 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 lessons105Writing Files
4 lessons85Reports
5 lessons105Sorting
4 lessons85Project: Bank Statement
4 lessons4Section 6
Programs That Work Together
Start sectionStartShare 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 lessons45Subprograms
5 lessons105Indexed Files
4 lessons85Validating Input
2 lessons45Project: Master Update
3 lessons3Section 7
Batch Jobs with JCL
Start sectionStartRun 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 lessons84Data Sets
4 lessons85Return Codes
3 lessons65When Jobs Fail
3 lessons65Project: Nightly Batch
5 lessons5
Learn by Doing
Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.
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!
January 2026
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
Double or Nothing
Day 5 of 7
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!
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.
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.
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.
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.