Repository navigation
JCL oracle tier 1: IBM-manual answers for IF/THEN/ELSE/ENDIF step flow (Part of #8413) - #8418
Merged
Merged
Conversation
…w, 18 scenarios (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Nov 14, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #8413 (slice 1 of 5: IF / THEN / ELSE / ENDIF). Does not close it.
Checklist: done
What this adds
tests/equivalence/jcl/ifelse/(FLOW.jcl, 4 jobs; scenarios.json, 18 scenarios) written from IBM's z/OS MVS JCL Reference (SA23-1385: IF/THEN/ELSE/ENDIF relational-expression keywords, EXEC COND EVEN / ONLY) BEFOREgitgalaxy.core.jcl_flowran on them. Each scenario'sbasisnames the rule; what the manual does not state is ASSUMED (A3, A5, A6) with a reason. Page numbers are not cited (read by section), stated inwritten_from.tests/cobol_mainframe/test_jcl_flow_ifelse_case.pychecks the shape and reproduces every answer.tests/tools/capability_ledger.pynow counts both IBM-written levels in "JCL step flow" (fixture 14 -> 32 answers).Evaluator result: 18 of 18 match on the first run; no disagreement, so no evaluator change.
Class / Sibling gaps
Class: the IF/THEN/ELSE/ENDIF construct and its interaction with step flow. Members covered: RC (step and highest-so-far), ABEND, ABENDCC (step and any), RUN, NOT and the NG / NL / NE operators, nested IFs (THEN and ELSE nesting, nested clause inside an unselected clause), IF around an EXEC PROC step, grouped AND / OR, COND=EVEN / ONLY / (n,op) in the same job, an abend inside an ELSE clause.
Sibling gaps: (1) stepname.procstepname.RC / .RUN / .ABEND on steps inside a procedure: documented by IBM, the evaluator treats a PROC call as one step (assumption A5); belongs to slice 2 (PROC resolution), needs jcl_flow to carry inner step rows. (2) The
¬glyph itself: fixture uses NOT (identical per IBM); the sign is a code-page byte. (3) JOB-statement COND, COND inside an IF clause: refused, as in the existing fixture. (4) PROC / GDG / restart / data-flow checklist lines: slices 2-5.Remaining slices
Slices 2-5 of #8413 (PROC resolution, GDG, restart, data flow), one PR each.
Gates
audit_check.pyall clear; guards (test_source_reads, generated_branch, change_classifier, progress_slide) pass; new tests 7 pass in under 1 s.--ratchets/ golden not run: no engine, parser or golden input changed.Hand-written files: 5 (test, capability_ledger.py, .gitignore whitelist line, FLOW.jcl, scenarios.json; the two case-data files are exempt).
🤖 Generated with Claude Code