Skip to content

JCL oracle tier 1: IBM-manual answers for IF/THEN/ELSE/ENDIF step flow (Part of #8413) - #8418

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261113T1958Z
Nov 13, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261113T1958Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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) BEFORE gitgalaxy.core.jcl_flow ran on them. Each scenario's basis names 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 in written_from.
tests/cobol_mainframe/test_jcl_flow_ifelse_case.py checks the shape and reproduces every answer. tests/tools/capability_ledger.py now 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.py all 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

…w, 18 scenarios (Part of #8413)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 13, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 13, 2026 20:04
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant