Repository navigation
JCL oracle: PROC nested calls, INCLUDE inside a proc, DD-kind override (Part of #8413) - #8563
Merged
Merged
Conversation
…e answered from the manual (Part of #8413) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
Contributor
|
No description provided. |
5 tasks done
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. Covers the three PROC gaps left open after #8456, #8554 and #8556 (checked merged on origin/main): nested procedure calls, INCLUDE inside a procedure, and a DD override that changes a DD's kind.
What changed
tests/equivalence/jcl/proc/scenarios.json: 9 new resolve scenarios, with the answers written from IBM's z/OS MVS JCL Reference (SA23-1385-60) before the resolver ran on them (nested calls pp. 32-34 and symbols pp. 47-49; INCLUDE ch. 19; DD overrides p. 29). New assumption A4 (nested steps are keyedCALLSTEP.PROCSTEP, levels flattened) and the new refused entries.gitgalaxy/core/jcl_proc.py: nested calls to 15 levels with the manual's symbol layering; INCLUDE groups resolved recursively inside a procedure; DUMMY /DSN=NULLFILEnullify a DSN and a DSN overrides a DUMMY.tests/cobol_mainframe/test_jcl_proc_case.py: library pin, coverage ids, refused-by-name list, and four refusal tests.procstep.procstep.ddname, a modifier naming an absent step or a calling step, EXEC PARM / COND on a call of a procedure that calls procedures, nesting past 15 levels, a non-DD statement in an INCLUDE group, nested calls in IF flow.Class / Sibling gaps
Class: JCL procedure modification and nesting constructs, where an override or nested call changes which statements reach the resolved step list. Siblings, no issues filed: IF flow over nested procedures (refused), EXEC PARM / COND through nested procedures (refused),
PARM./COND.on a calling step (refused), INCLUDE groups holding EXEC statements (refused), duplicate symbols, the manual's nested-symbol Example 2 (WORK=&WORKquote handling), DSN=NULLFILE in other consumers of the DD list.Checklist: partial [c:e2b88820] -- IF flow over nested procedures, EXEC PARM/COND through nesting and SYSOUT over a DSN DD are refused by name, not answered
Checklist: partial [c:0c2f89bb] -- not touched by this slice
Checklist: partial [c:fe4cf3d7] -- not touched by this slice
Remaining slices
The sibling list above; each is refused by name today.
Verification
test_jcl_proc_case.py: 40 passed (the 19 existing scenarios unchanged, 9 new). The JCL and capability-ledger tests pass.pr_gates --fast: 7 of 9 gates pass after formatting with the pinned ruff 0.17.4 (lint now passes).affectedfails on two tests,test_estate_size::test_the_record_matches_a_live_count_of_the_corporaandtest_container_datatype_change_reach_5005; both fail identically on unchanged origin/main (checked in a clean worktree), and neither importsjcl_proc.pr_gates --ratchets: 5 pass, 4 fail (ports, fact-crosscheck, completeness, ground-truth). Not compared against a main control.portsreports a local cics-crucible checkout off its v0.19.0 pin; these are COBOL ratchets and this change touches none of the files they read. Treat them as unverified.Lessons for agents
DUMMY,*,DATA) comes back fromjob_flow._splitas(None, value): a dict built only from keyed operands never sees it.pr_gates --fastprints only the tail through a pipe and buffers it: send it to a scratch file and read that.🤖 Generated with Claude Code