Interactive course
Course COBOL
Learn the modern and mainframe COBOL language progressively: from the four divisions and fixed columnar format up to PIC/COMP-3, fiscal arithmetic, IF/EVALUATE, PERFORM VARYING, OCCURS tables, batch files, STRING/INSPECT, CALL, SORT subroutines, and copybooks.
01 · Structure, Columns and DATA DIVISION
The four mandatory divisions, the fixed 80 column format (Area A / Area B) and the exact RAM layout of the PIC clauses.
- 1.1Program Structure and Columns (1–80)Understand the skeleton of a COBOL file, the four divisions (IDENTIFICATION, ENVIRONMENT, DATA, PROCEDURE), columns 1–80, and STOP RUN.~14 min
- 1.2Variables, PICTURE (PIC X/9/V/S) and PaddingDeclare variables in WORKING-STORAGE SECTION with levels 01/05, PIC(X, 9, V, S), VALUE and understand opposite padding and truncation.~15 min
02 · Arithmetic and Decisions
Formal COBOL arithmetic (ADD, SUBTRACT, MULTIPLY, DIVIDE), COMPUTE expressions, rounding and branching with IF and EVALUATE.
- 2.1Arithmetic COBOL and COMPUTEPerform calculations with ADD/SUBTRACT/MULTIPLY/DIVIDE GIVING REMAINDER, master COMPUTE and mandatory spaces around operators.~15 min
- 2.2Decisions with IF ed EVALUATEBranch the execution with IF-ELSE-END-IF and EVALUATE (multiple values, intervals THRU and EVALUATE TRUE) avoiding truncation from the end point.~15 min
03 · Modularity, Paragraphs and Cycles
Structure the PROCEDURE DIVISION into reusable paragraphs with PERFORM, avoid accidental fall-throughs, and master TIMES, UNTIL, and VARYING.
- 3.1Paragraphs, PERFORM and Fall-ThroughBreak the PROCEDURE DIVISION into paragraphs in Area A, recall them sequentially with PERFORM and protect the output with STOP RUN.~14 min
- 3.2PERFORM TIMES, UNTIL and VARYING loopsCheck fixed iterations (TIMES), pre-test conditionals (UNTIL, while inverse logic), and loops with built-in counter PERFORM VARYING.~16 min
04 · Hierarchical Records and Tables OCCURS
Organize data into contiguous group items (01/05/10), MOVE group semantics, and base-1 arrays with OCCURS and SEARCH.
- 4.1Hierarchical Records and Group ItemsDeclare records 01 and subordinate fields 05/10, understand the impact of MOVE on group elements, and format contiguous reports.~15 min
- 4.2Base-1, OCCURS and SEARCH tablesAllocate static arrays with OCCURS N TIMES, strictly base-1 indexing, PERFORM VARYING scans, and INDEXED BY / SEARCH searches.~16 min
05 · Batch Sequential Files & I/O
Connect logical and physical files via SELECT ASSIGN / FD and implement safe batch loops with OPEN, priming READ AT END, WRITE and CLOSE.
- 5.1FILE-CONTROL (SELECT) and FILE SECTION (FD)Associate logical names with external datasets in ENVIRONMENT DIVISION, declare buffer FD/01 in FILE SECTION, and plot FILE STATUS.~16 min
- 5.2OPEN, READ (Priming Read), WRITE and CLOSEMaster the INPUT/OUTPUT/EXTEND/I-O modes, the priming read pattern to avoid duplicate records on EOF and writing to records FD.~16 min
06 · Strings, INSPECT and Subroutines
Fixed text field processing with STRING, UNSTRING and INSPECT and multi-program modular architecture via CALL, LINKAGE SECTION and GOBACK.
- 6.1STRING, UNSTRING and INSPECTConcatenate fields by eliminating trailing blanks with DELIMITED BY SPACE, parse CSV with UNSTRING and count/replace patterns with INSPECT.~16 min
- 6.2Subprograms: CALL, LINKAGE SECTION and GOBACKInvoke static or dynamic external modules with BY REFERENCE vs BY CONTENT, map parameters to LINKAGE SECTION and distinguish GOBACK from STOP RUN.~16 min
07 · File Sorting, Copybook and Level 88
High performance pipeline with SORT/MERGE to SD work files, reuse of shared layouts COPY ... REPLACING, REDEFINES and Level 88 condition names.
- 7.1Batch sorting with SORT and MERGEDefine temporary files SD (Sort Description), sort by ASCENDING/DESCENDING keys with SORT USING/GIVING, and merge sorted streams via MERGE.~16 min
- 7.2Copybook (COPY), REDEFINES and Level 88 Condition NamesShare records between dozens of sources with COPY REPLACING, overlay layouts on the same RAM via REDEFINES, and model states with Level 88 and SET TO TRUE.~16 min
08 · COMP-3, Tax Accuracy & Legacy Ops
Binary/BCD representation in mainframe memory (COMP-3, DISPLAY Zoned), exact financial arithmetic, and diagnosis of batch jobs and historical bugs.
- 8.1COMP-3 Packed Decimal, ROUNDED and ON SIZE ERRORCalculate exact bytes of PIC S9(N)V99 COMP-3, avoid rounding errors IEEE-754 in accounting and trap overflow with ON SIZE ERROR.~18 min
- 8.2Legacy Maintenance, JCL DD, File Status and Y2KRead FILE STATUS codes ("00", "10", "35"), connect ASSIGN TO DDNAME with JCL mainframes, and recognize historical traps such as Y2K and misaligned copybooks.~16 min
Tools & related tracks for Course COBOL
Explore structured learning tracks on eLearner.app, or jump straight into the live playground and printable cheatsheet for this course.
Recommended next courses
Course COBOL FAQ
How many lessons and hands-on exercises are in Course COBOL?
Course COBOL covers 8 modules, 16 interactive lessons, and 80 practical exercises (~4 hours total) with instant automated validation.
Do I need local setup or IDE installation for Course COBOL?
No installation required: every exercise and the interactive Course COBOL playground execute right in your browser via WASM and isolated sandboxes, with instant feedback.
Is Module 1 of Course COBOL free without creating an account?
Yes. Module 1 (“Module 1 — Structure, Columns and DATA DIVISION”), the live playground, and the printable cheatsheet are permanently free without signup, saving your progress locally in your browser.
Which companion courses pair best with Course COBOL?
Course COBOL pairs smoothly with SQL, Linux, and Git courses on eLearner.app to round out database querying, CLI workflows, and version control.