Skip to content

Add new lab: Handling S0CB ABEND (Division by Zero) #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

oathar
Copy link
Contributor

@oathar oathar commented Jul 21, 2025

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:

  • A COBOL program (CBL0067.cobol) that intentionally causes a division by zero.
  • A corresponding JCL file (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

image image

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.

  • Bug fix (change which fixes one or more issues)
  • New feature (change which adds functionality or features to the course)
  • Translations (change which adds or modifies translations of the course)
  • Documentation (change which modifies documentation related to the course)
  • This change requires an update to the course's z/OS environment

Checklist:

  • I have read the Contributing Guideline
  • I have included a title and description for this PR
  • I have DCO-signed all of my commits that are included in this PR
  • I have tested it manually and there are no regressions found
  • I have commented my code, particularly in hard-to-understand areas (if appropriate)
  • I have made corresponding changes to the documentation (if appropriate)

@oathar
Copy link
Contributor Author

oathar commented Jul 25, 2025

@MikeBauerCA, I've resolved the merge conflict successfully. Your review would be greatly appreciated! Thank you.

oathar added 2 commits July 28, 2025 11:18
Signed-off-by: Athar Ramzan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant