Skip to content

VSAM lineage: a statically CALLed subprogram takes its caller's step DDs (Fixes #5034) - #5068

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5034-20261014T0006Z
Oct 14, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5034-20261014T0006Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #5034

Root cause. dataset_lineage bound a program's DDs only through EXEC PGM= runners, so a statically CALLed subprogram (CardDemo CBSTM03B, CALLed by CBSTM03A in CREASTMT STEP040) had no job and no dataset. vsam_files -> vsam_stores users -> the stub's "BATCH SELECT" -> det then saw no repository ("no repository for this file in the generated project").

Fix. galaxy_ir.py dataset_lineage: the jobs that run a program also run what it statically CALLs (verb == "CALL", resolves_to), transitively, cycle-safe. A CALL through an unresolvable data item is not followed.

Class table (class: a program with no EXEC PGM= runner gets no JCL DD bindings)

member status
CALLed subprogram, direct / multi-level / cycle fixed, tested
vsam_files, vsam_stores batch users, dataset_flows (all built on dataset_lineage) fixed by the same change
callee run by two jobs with different DSNs for one DD unchanged: refused by design, pinned by a test
dynamic CALL (data item with no constant) not followed: pinned by a test
DD bound to more than one DSN / program no job runs refused by design, unchanged

Evidence. det_survey --no-compile CBSTM03B: 53/53 statements translated, no holes. det_port.py check: 14 CardDemo ports changed, all only the repository javadoc "Used by" list gaining CBSTM03B.CBL (INPUT); no code change. pr_gates --fast 6/6, --ratchets 7/7, none skipped. Golden masters, ledger, completeness, fact-crosscheck unchanged.

Sibling gaps. Step-level DD scoping (lineage is job-wide, as before); CALLs resolved only at run time.

Cross-repo. None.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 00:48
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 00:48
@squid-protocol
squid-protocol merged commit 62b657e into main Oct 14, 2026
48 checks passed
@squid-protocol
squid-protocol deleted the churn/5034-20261014T0006Z branch October 14, 2026 01:03
@squid-protocol

Copy link
Copy Markdown
Owner Author

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.

Siblings of #4949: file declarations with no repository (CALLed subprogram DDs bound in the caller's step)

1 participant