Skip to content

Add S0C7 ABEND Lab: Handling Data Exception Due to Invalid Numeric Operations #337

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 2 commits into
base: master
Choose a base branch
from

Conversation

oathar
Copy link
Contributor

@oathar oathar commented Aug 4, 2025

Proposed changes

This pull request adds a new lab under the ABEND Handling section of the COBOL Programming Course, specifically focusing on the S0C7 - Data Exception. It introduces a practical example where arithmetic is attempted on invalid numeric data.

The lab includes:

  • Explanation of why the S0C7 ABEND occurs
  • Step-by-step instructions to reproduce the error
  • Sample JCL and COBOL code
  • Instructions to fix the code and avoid the ABEND
  • Screenshots
Screenshot 2025-08-04 202655

This lab helps learners understand a common cause of runtime crashes in COBOL, improving their debugging skills and awareness of data type issues.

Before:

image

After:

image image

Fixes # (no issue opened – enhancement contribution)

Type of change

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:

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This checklist will be used as reference for both the contributor and the reviewer.

…erations

Signed-off-by: Athar Ramzan <atharramzan.ofi@gmail.com>
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