Skip to content

JCL SYSLIB: an override naming fewer datasets than the proc's concatenation is not guessed (Part of #8412) - #9034

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261122T1522Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261122T1522Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412.

Checklist: done [c:166e4a56]

What changed

A cataloged proc's SYSLIB can be a concatenation (several DDs). A compile step's call-level //COB.SYSLIB DD override was read as replacing the whole concatenation, whatever its length. IBM matches override DDs to the proc's concatenated DDs by position, so an override naming fewer datasets than the proc leaves the proc's later libraries in the search order, which changes which same-name copybook wins. jcl_syslib_orders now:

  • override names as many datasets as the proc, or more: replaces the concatenation (unchanged result);
  • override names fewer: the program declares nothing (the order is not guessed; same-name members stay refused as ambiguous rather than resolved wrongly).

Files: gitgalaxy/core/copy_libraries.py, tests/cobol_mainframe/test_copy_jcl_syslib_8412.py. Tests: the old "replaces the whole concatenation" case is split into equal / more / fewer.

Class / Sibling gaps

Class: how a compile JCL fixes the COPY library order (SYSLIB DD concatenation, JCLLIB ORDER=, proc defaults and symbols, in-stream PROC, INCLUDE groups, call-level overrides). Members, with status: direct SYSLIB DD concatenation (done, #8656); JCLLIB ORDER= proc lookup (done, #8752); symbolic dataset names from PROC defaults, SET and call symbols (done, #8753); in-stream PROC and INCLUDE groups (done, #8766); call override of a concatenation (this PR, positional rule). Sibling gaps, all on authored fixtures only, no burned estate ships compile JCL that needs them: an override of a proc with more than one compile step (refused: which step an override addresses is not guessed); DD DUMMY / DDNAME= / DSN=...(member) entries inside SYSLIB (read as unreadable, declare nothing); PROCLIB concatenations named by JOBLIB/SYSLIB search rather than JCLLIB (not read). None of these is filed.

Gates

pr_gates.py --fast: 9/9 pass. tests/cobol_mainframe -k copy: 762 passed, 6 skipped. pr_gates.py --ratchets: 6 pass; fact-crosscheck, completeness and ground-truth fail only because example-health-apis is not fetched at its pinned ref in this worktree (the CI job has it); the change reads JCL only for estates that ship compile JCL with an override, so no baseline should move (not verified locally).

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

…nation is not guessed (Part of #8412)

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 22, 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 22, 2026 15:46
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 15:47
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit cf1241e into main Nov 22, 2026
101 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261122T1522Z branch November 22, 2026 16:20
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