Development
Code
COBOL
COBOL
Course
COBOL course: zero to hero in 50 lessons
Fifty lessons from the four divisions to files, SQL, CICS and two capstones.
Open
→
All articles
cobol/
basics/
(1)
COBOL basics: what the language is and where it is used
course/
(58)
COBOL course: zero to hero in 50 lessons
1 What is COBOL and where it runs
2 Install COBOL and check the version
3 cobc: the COBOL compiler
4 Your first COBOL program
5 The four divisions
6 Variables and PICTURE clauses
7 Numbers: USAGE, COMP and COMP-3
8 Alphanumeric fields (strings)
9 Constants: level 78 and VALUE
10 Conditions and relation tests
11 IF, ELSE and EVALUATE
12 PERFORM loops
13 Tables: OCCURS arrays
14 INDEXED BY and OCCURS DEPENDING ON
15 Paragraphs and sections
16 STRING and UNSTRING
17 Files: SELECT and FD
18 Sequential files: READ and WRITE
19 Error handling: USE and DECLARATIVES
20 Copybooks and COPY
21 OO COBOL: classes and objects
22 Inheritance in OO COBOL
23 Intrinsic functions
24 COBOL idioms and clean code
25 Build tools: make and cobc flags
26 Testing COBOL programs
27 Debugging: cobcdebug and -g
28 Encodings: EBCDIC, ASCII and UTF-8
29 Date and time
30 JSON and XML
31 Calling C functions
32 Subprograms: CALL and USING
33 SQL with EXEC SQL
34 DISPLAY and formatting
35 ACCEPT and the SCREEN section
36 The Report Writer
37 Sorting with the SORT verb
38 Command-line arguments
39 Environment and RETURN-CODE
40 Logging to files
41 CSV parsing
42 CICS overview
43 Batch processing and JCL
44 File status and transactions
45 Db2 in practice
46 Capstone: CLI calculator
47 Capstone: fixed-width file processor
48 Performance: tuning COBOL
49 Modern COBOL tour (2014+)
50 Hero roadmap: the whole course on one page
COBOL in Docker
Install COBOL on FreeBSD
Install COBOL on macOS
Install COBOL on Rocky Linux
Install COBOL on Ubuntu
Install COBOL on Windows 11
COBOL on mainframes
External materials
Documentation of other compilers and platforms
GnuCOBOL documentation
IBM Enterprise COBOL for z/OS
Micro Focus COBOL documentation