Skip to content

JCL proc: unqualified EXEC PARM / COND, SET against PROC defaults, nullified symbols (Part of #8413) - #8556

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261117T0641Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8413-20261117T0641Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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, PCJOB and SSJOB), each basis citing the z/OS MVS JCL Reference (SA23-1385, V2R2 edition, read from the PDF text) by section and page:

Scenario Answer Source
exec-parm-first-step-only PARM= on a calling EXEC (no procstepname) goes to the first procedure step only; later steps' PARM are nullified EXEC PARM, p. 353 + Example 2; ch. 5 p. 29
exec-cond-every-step COND= on a calling EXEC replaces a step's COND and is added to a step with none: every step EXEC COND, p. 345
set-loses-to-proc-default SET value is used in a procedure only when EXEC and PROC do not define the symbol (EXEC > PROC > SET) ch. 5 pp. 39-40, rule 4 + Table 13 pp. 51-52
exec-value-and-nullified-symbol EXEC value beats PROC default; C= on EXEC nullifies the symbol (empty text) ch. 5 pp. 39-42

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 .procstep form 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):

  • Duplicate symbols on one EXEC/PROC (first wins) or SET (last wins): refused, needs a resolver change to the statement parser; manual p. 40.
  • Unqualified COND= in expand_flow_rows (IF flow over proc steps): not applied there, resolver only; needs a job_flow row change; manual p. 345.
  • Other unqualified EXEC keywords (TIME, ACCT, REGION, ADDRSPC, RD): not resolved at all; manual pp. 29, 339-341.
  • Nested procedures, INCLUDE inside a procedure, DD override changing DD kind (DSN to SYSOUT/DUMMY): refused, separate mechanism; manual ch. 5 p. 51 and DD override sections.
  • Symbolic-parameter positional/comma handling when a symbol is nullified (manual p. 42): not answered.

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*.py and tests/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 in jcl_proc.py). Not run: pr_gates --ratchets (no golden-relevant parsing change: jcl_proc.py is not in the detector path).

🤖 Generated with Claude Code

…llified symbols, 4 answers (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 17, 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 17, 2026 06:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 06:47
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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