Original tutorials and notes written for mainframe learners and production-support developers.
COBOLA batch report can have correct totals and still be operationally unusable when headings appear in the middle of detail, page numbers drift, or a final page is never closed cleanly. This tutorial shows a small, controlled pattern for `WRITE ... AFTER ADVANCING` page control and the evidence to review before changing an existing report.
Read article →
COBOL`SEARCH ALL` is attractive because it can locate a row in a large COBOL table with fewer comparisons than a sequential `SEARCH`. Its hidden precondition is more important than its speed: the active rows must already be ordered exactly as the search key and sort direction expect.
Read article →
COBOLAn internal COBOL `SORT` is often introduced as a convenient way to order a file. In a production batch program, the harder problem is proving that every eligible record was released once, returned once, and written once when input and output procedures are involved.
Read article →
JCLA batch job can fail before its program gets control because an output dataset cannot be allocated or extended. This guide shows how to distinguish an initial-allocation problem from an extension problem, collect evidence that matters, and make a controlled correction without treating `SPACE` as a number to keep increasing.
Read article →
COBOLA variable-length COBOL record can look valid until an `OCCURS DEPENDING ON` count says there are more repeated items than the record actually contains. This tutorial shows how to validate that control field before using it for business processing, and how to investigate a bad input record without turning a batch rerun into duplicate work.
Read article →
MainframeA batch failure often leaves useful evidence scattered across scheduler notes, JCL, messages, and handover comments. This article shows how to use an AI assistant to draft a recovery runbook from **sanitized** evidence while keeping technical decisions, authorization, and production actions with human reviewers.
Read article →