Add new lab: Handling S0CB ABEND (Division by Zero) #335
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes:
This PR introduces a new lab under the ABEND Handling section of the COBOL Programming Course. The lab demonstrates a common and critical runtime error: the S0CB ABEND, caused by division by zero. The objective of the lab is to help learners identify, understand, and fix this ABEND by modifying COBOL code.
The lab includes:
CBL0067.cobol
) that intentionally causes a division by zero.CBL0067.jcl
) to compile and execute the COBOL program.This addition helps reinforce the importance of proper variable initialization and error diagnostics using CEEDUMP and S0CB error messages.
Final Look
Fixes:
No existing GitHub issue is being fixed, but this PR addresses a missing practical example under Chapter 12: ABEND Handling.
What type of changes does your PR introduce to the COBOL Programming Course? Put an
x
in the boxes that apply.Checklist: