Repository navigation
JCL proc: unqualified EXEC PARM / COND, SET against PROC defaults, nullified symbols (Part of #8413) - #8556
Merged
Conversation
…llified symbols, 4 answers (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
This was referenced Nov 17, 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 (checklist item "PROC resolution": the constructs the first PROC slice (#8456, #8554) refused or left unanswered).
What changed
Four new IBM-manual answers in
tests/equivalence/jcl/proc/scenarios.json(two new jobs,PCJOBandSSJOB), eachbasisciting the z/OS MVS JCL Reference (SA23-1385, V2R2 edition, read from the PDF text) by section and page:exec-parm-first-step-onlyPARM=on a calling EXEC (no procstepname) goes to the first procedure step only; later steps' PARM are nullifiedexec-cond-every-stepCOND=on a calling EXEC replaces a step's COND and is added to a step with none: every stepset-loses-to-proc-defaultexec-value-and-nullified-symbolC=on EXEC nullifies the symbol (empty text)Resolver (
gitgalaxy/core/jcl_proc.py): the two refusals that the manual answers are lifted (unqualified PARM / COND, SET vs PROC default). Still refused by name: unqualified plus.procstepform of the same keyword on one call (manual silent), a symbol assigned nowhere (manual: undefined, "might cause errors"), nested procs, INCLUDE in a proc, DD kind change.Honesty note: I changed the resolver before writing the scenario file, so the expected values are not resolver-blind the way #8456's were. They were derived from the manual text quoted in each
basis, not from resolver output. No ASSUMED entries were added (where the manual is silent the construct is refused).Class / Sibling gaps
Class: PROC-call modifications of a procedure's resolved steps (symbols, EXEC keyword overrides, DD overrides, INCLUDE, JCLLIB). Members covered by #8456 / #8554: symbol defaults, EXEC values, SET, PARM.procstep, COND.procstep, DD override, added DD, INCLUDE, JCLLIB first-wins. Added here: unqualified PARM, unqualified COND, SET vs PROC precedence, nullified symbol. Sibling gaps (member, status, why not here, source):
COND=inexpand_flow_rows(IF flow over proc steps): not applied there, resolver only; needs ajob_flowrow change; manual p. 345.Remaining slices
The #8413 item stays open for the gaps above (one more slice: nested procs plus DD-kind override; another: duplicate symbols plus flow-side COND). Not ticked.
Gates run
pytest tests/cobol_mainframe/test_jcl_proc_case.py test_jcl_flow*.pyandtests/tools -k "capab or jcl"pass (28 + 54, 2 skipped); pinned ruff 0.17.4 format and check clean on the changed files;audit_check.py: dead-key, doc-refs, ast-accuracy, signal-coverage OK; its mypy section lists backlog findings in other files (none injcl_proc.py). Not run:pr_gates --ratchets(no golden-relevant parsing change:jcl_proc.pyis not in the detector path).🤖 Generated with Claude Code