Skip to content

Add Lab: Case Sensitive Nature of COBOL Conditions (Lab 9) #334

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

Merged
merged 3 commits into from
Jul 25, 2025

Conversation

oathar
Copy link
Contributor

@oathar oathar commented Jul 20, 2025

Proposed changes

This pull request introduces a new lab to the COBOL Programming Course, focusing on the case-sensitive nature of string literal comparisons in COBOL conditional expressions. The lab demonstrates how COBOL is case-insensitive for keywords and identifiers, but case-sensitive when comparing string literals, which can lead to subtle and hard-to-detect bugs in real-world applications.

I have included all the necessary details and comprehensive guidance to assist the user in successfully completing this lab. Initially, the user may encounter an incorrect answer in their report. I then explain to the user what might have caused the error and offer helpful hints on specific areas to review and possible changes to make. This step-by-step approach aims to improve their understanding and ensure accurate results in their report.

Files added:
CBL0066.cbl - COBOL program source
CBL0066J.jcl - JCL job to compile and execute

Final look:

image image

Fixes # (issue) - Not applicable, as this is a new feature addition.

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

  • 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)

Signed-off-by: Athar Ramzan <atharramzan.ofi@gmail.com>
oathar added 2 commits July 21, 2025 22:03
Signed-off-by: Athar Ramzan <atharramzan.ofi@gmail.com>
@MikeBauerCA MikeBauerCA self-requested a review July 25, 2025 16:52
Copy link
Contributor

@MikeBauerCA MikeBauerCA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution - approved!

@MikeBauerCA MikeBauerCA merged commit f7796de into openmainframeproject:master Jul 25, 2025
1 check passed
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.

2 participants