READ‑ERROR: Unhandled cancellation in COBOL READ
Goal Design a COBOL program that can terminate a long‑running READ or WRITE operation when a user or system request occurs, ensuring no data corruption or resource leaks. Constraints The COBOL standard only defines READ‑ERROR and WRITE‑ERROR for file‑access failures. It does not prescribe any timeout or cancellation mechanism. Vendor extensions (e.g., platfo