Skip to content

JCL proc: a job-level INCLUDE group holding EXEC and SET is spliced into the job, 4 answers from the manual (Part of #8413) - #8727

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261120T0009Z
Nov 20, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261120T0009Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8413

What changed

A job-level INCLUDE group that holds EXEC and SET statements is now spliced into the job whole, as the manual says ("the INCLUDE group replaces the INCLUDE statement", JCL Reference, INCLUDE statement, p. 376). Before, an INCLUDE was carried only as the DDs of the step above and a group with an EXEC or SET was refused.

  • gitgalaxy/core/jcl_proc.py: _include_statements (nested groups, 15 levels, JOB / PROC / PEND / JCLLIB invalid) and _splice_includes (applied to the job's statements before steps are read; an INCLUDE inside an in-stream PROC .. PEND keeps the DD-only path and still refuses EXEC / SET by name).
  • tests/equivalence/jcl/proc/scenarios.json: 4 new resolve scenarios (include-group-*), answers written from p. 376 before the resolver ran: a SET in a group holds for later statements (FROMGRP.DATA after the group, BEFORE.DATA before it), a group EXEC runs, a nested group's EXEC calls a library procedure found along JCLLIB ORDER. The refused row for a job-level group is replaced by the narrower in-procedure row.
  • tests/cobol_mainframe/test_jcl_proc_case.py: library member list, refused-name check, and a unit test for splice + the in-procedure refusal.

Class / Sibling gaps

Class: JCL procedure-resolution rows the manual allows but the resolver refused by name. Handled here: INCLUDE group holding EXEC / SET at job level. Still open by name (member, why not here): an INCLUDE group holding EXEC / SET inside a procedure (needs the proc body walked as a stream, different mechanism); EXEC PARM= / COND= through nested calls and PARM.procstep / COND.procstep on a calling step (manual silent); SYSOUT or DD * over a DSN DD (manual silent); IF flow over nested procs (expand_flow_rows refuses); an in-stream procedure coded after its EXEC (manual does not say); unqualified PARM/COND together with the .procstep form. GDG resolver gaps and restart rows are separate checklist lines.

Remaining slices

  • Procedure-level INCLUDE with EXEC / SET (jcl_proc.py _step_dds, scenarios.json, test file).
  • IF flow over nested procs (jcl_proc.py expand_flow_rows, once an answer is found in the manual).

Gates

audit_check.py: all clear. Case tests 82 passed; tests/tools -k "capab or jcl or ledger" and test_jcl_flow_level_fixture 131 passed, 2 skipped; tree-wide guards test_source_reads and test_change_classifier pass. pr_gates --ratchets not run (no parsing / golden surface touched: gitgalaxy/core/jcl_proc.py is a tools-side resolver).

Checklist: partial [c:e2b88820] -- procedure-level INCLUDE with EXEC / SET, IF flow over nested procs and the manual-silent rows remain

🤖 Generated with Claude Code

…nto the job, 4 answers from the manual (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 20, 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 20, 2026 00:31
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 20, 2026 00:42
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@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