Repository navigation
JCL oracle tier 1: IBM-manual answers for data flow between steps and resolver (Part of #8413) - #8552
Merged
Merged
Conversation
… temporaries, DUMMY / NULLFILE, concatenation, SYSOUT / OUTPUT) and resolver (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
… test instead of crashing (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
CI shepherd: the head of this PR (82c7d41) is not the one a maintainer labelled |
auto-merge was automatically disabled
November 17, 2026 04:08
Pull request was converted to draft
Contributor
|
No description provided. |
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.
Summary
Last unchecked slice of #8413, "Data flow between steps".
tests/equivalence/jcl/dataflow/scenarios.jsonholds 7 jobs and their answers, written from IBM's z/OS MVS JCL Reference (SA23-1385) by section beforegitgalaxy/core/jcl_dataflow.pyexisted. The resolver then reproduced all 7 on the first run (one scenario input, a missinggivenoutcome for a step that starts, was my own mistake and was fixed in the fixture; no answer changed and no evaluator needed a fix).Per
STEP.DDNAMEof a step that ran the answer is{datasets: [...]}(a concatenation in coded read order),{dummy: true},{temporary: "system-named"}or{dd_class, output?}; each&&namealso gets its creating DD, the DDs that receive it and the step after which it is deleted (JOB= end of job). A bypassed step allocates nothing.Checklist: done [c:13ade2b7]
Class / Sibling gaps
Class: how a DD of a running step names data, and how that data moves between steps of one job. Members and status:
&&temp passed (DISP=(NEW,PASS), receivedOLD,PASSthenOLD,DELETE)temp-pass-chain&&temp default dispositions (NEW with none = deleted at step end; existing with none stays passed, ASSUMED A1)temp-default-dispositions&&temp of a bypassed creatortemp-bypassed-creator, refusal testtemp-pass-chainS1.WORKDD DUMMY,DSN=NULLFILE, DUMMY with ignored DSN/DISPdummy-and-nullfileconcat-read-order,concat-temporariesA,*= MSGCLASS,(B,,FORM))sysout-classes*.NAME,*.STEP.NAME, a list)sysout-classesrefusedlistSibling gaps (not done here):
dd_classis the DD's own). Needs the OUTPUT statement's values injob_flowrows (output_paramsholds keyword names only). Source:job_flow.pyOUTPUT row.OUTPUT DEFAULT=YESimplicit references andSYSOUT=(,)taking its class from an OUTPUT: same cause.MSGCLASSis not on the JOB row, so the resolver takes it as an argument (scenario inputmsgclass); ajob_flowJOB-row field would remove the argument but moves fact-channel rows, so it is its own slice.in_proc,jcl_proc.expand_flow_rowssplices) are not resolved: DDs of spliced steps are not read here, as injcl_gdg.Files (5 hand-written)
gitgalaxy/core/jcl_dataflow.py,tests/cobol_mainframe/test_jcl_dataflow_case.py,tests/equivalence/jcl/dataflow/scenarios.json,.gitignore(whitelist line for the new json),tests/cobol_mainframe/test_mainframe_corpus.py(a clone with no commit now skips the byte-identity test instead of crashing:git rev-parse HEADexited 128 on the emptied sharedexample-health-apisclone). Regenerated:tests/tools/docs_read_by_tests.txt.Doc-refs fixes:
gitgalaxy/core/README.md(one row for the new module, 1 line).Gates
test_jcl_dataflow_case.py: 16 passed (0.5 s; time ratchet 0 over limit); tree-wide guards: 305 passed.pr_gates --fast: 7/9;derivedfixed bychange_classifier.py --write;affectedwas red only ontest_mainframe_corpus.py::...[example-health-apis](emptied local clone); fixed by the skip guard, rerun PASS. All 9 gates pass.audit_check.py: ruff, mypy, dead-key, doc-refs OK after the commit.pr_gates --ratchets: cics-spec, port-surface, estate, det-mutation, time pass. NOT passed, environment, untouched by this change:completenessandground-truthandfact-crosscheck(example-health-apis corpus),ports(local cics-crucible checkout not on its v0.19.0 pin). Left to CI.Lessons for agents
audit_check.pydoc-refs reads tracked files: a new module named in a README row fails as "[name]" until the module is committed, then passes.JclFlow.runscenario needsgivenfor every step that starts, including later steps after a bypass, or it raisesKeyError.🤖 Generated with Claude Code