Repository navigation
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
Conversation
…nto the job, 4 answers from the manual (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
1 similar comment
Contributor
|
No description provided. |
This was referenced Nov 20, 2026
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.
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.DATAafter the group,BEFORE.DATAbefore 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_rowsrefuses); 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
_step_dds, scenarios.json, test file).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 --ratchetsnot run (no parsing / golden surface touched:gitgalaxy/core/jcl_proc.pyis 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