CoreProgramming36 min
COBOL basics
The language most business logic on this platform is written in. Verbose on purpose, strict about data, and much easier to read than to write.
What you will be able to do
- Read a COBOL program and know what each division does
- Interpret a PICTURE clause and a level-number hierarchy
- Compile, link and run a program, and diagnose an S0C7
Lessons
- Why COBOL still, and what it is good atCOBOL was designed so that business people could read it. That makes it wordy, and it also makes forty-year-old code comprehensible to someone who has never seen it before —…
- The four divisionsEvery COBOL program has the same four sections in the same order. Once you know what belongs where, you can navigate any program in seconds.
- PICTURE clauses and how data is storedThe PIC clause says what a field holds and how big it is. The USAGE says how it is physically stored. Getting these wrong is the single largest source of COBOL run-time failures.
- Logic, files and calling other programsCOBOL's control flow is small: conditionals, PERFORM loops, EVALUATE for multi-way choices, and CALL to run another program. File I/O is verb-based and always tells you what…
- Compile, link, run — and debugging S0C7Source becomes an executable in two stages: the compiler produces an object module, and the binder turns that into a load module in a library. Then JCL runs it. Knowing which…
Track your progress and earn a certificate.
Free account, 289 quiz questions for this subject.