Skip to content

Engine: resolve the program a batch runner runs (#3710) - #3742

Merged
squid-protocol merged 2 commits into
mainfrom
feat/batch-runners-3710
Sep 26, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
feat/batch-runners-3710

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #3710 (epic #3625).

The gap

Batch programs are often run through a runner, so a step's PGM= named the runner and not the program:

  • IKJEFT01 + SYSTSIN RUN PROGRAM(x);
  • DFSRRC00,PARM='BMP,x,psb'.

So job_steps, lineage and the Spring Batch forge couldn't see program x.

Engine

core/jcl_runners.py reads each runner step:

runner reads via
IKJEFT01 / 1A / 1B in-stream SYSTSIN RUN PROGRAM(x) PLAN(p) RUN PROGRAM
CALL 'lib(x)' TSO CALL
EXEC 'lib(x)' / %x (REXX / CLIST) TSO EXEC
a SYSTSIN coded as a dataset member the member
DFSRRC00 PARM's second positional DFSRRC00

It also handles - / + continuations. Commands-only SYSTSIN (DSN FREE / BIND, RACF) is recorded as such.

Recorded facts:

  • STEP rows gain runs / runs_via / systsin_member: new job_flow_data columns, rehydrated, and on EngineJobFlow.
  • Call edges: every load-module target is an EXEC PGM call site with form: runner, so the call graph, reachability and completeness see it. A REXX exec rides on the step only.
  • job_steps: each step has runner_programs, resolved to program files.
  • SYSTSIN members: read from GalaxyIR.source_root, which the refractor sets (CardDemo's .ctl members aren't scanned). A missing member is reported as a finding.

Completeness (batch entry):

corpus batch entry program calls added
CBSA 0/1 → 1/1 +1 (BANKDATA)
CardDemo 11/17 → 16/17 +5 (COBTUPDT + 4 IMS programs)

All the new program calls resolve. DSNTEP2 / DSNTIAD / DFSURGU0 count as system names.

Spring Batch forge

A runner step becomes the program it runs:

  • Estate program: runBatch, with "through IKJEFT01 (RUN PROGRAM)" in its javadoc.
  • IBM utility: a utility step.
  • TSO commands only: utility work.
  • Unknown: a missing member, a REXX exec or a DFSRRC00 without a program keeps the job runner, with the reason stated.

Job classification after the change:

  • CBSA: 37 runner-driven jobs → 1 application (BANKDATA) + 36 utility (DSNTEP2, RACF / console commands).
  • CardDemo: runner jobs → application (COBTUPDT, IMS PAUDBLOD / PAUDBUNL / DBUNLDGS) and utility. One runner remains, TXT2PDF1 (a REXX exec).

Answer key + census

  • New field "JCL runner programs" (runner_steps): L<line> STEP RUNNER RUNS=PROG/VIA or SYSTSIN=MEMBER, from the key tool's own JCL reader.
  • New census suite runners: full, with recall files (runner JCL where nothing is keyed).
  • Census result: 5 blind brief-only reviewers agreed on 86 / 86 units (CBSA 31, CardDemo 13, GENAPP 12, zECS 30), all cross_verified. Every unit was round-tripped through grade first.
  • Engine vs key: they agree on every unit, and the ledger is clean.

Verification

  • Blast radius: ir_join_diff --rescan changes only job_steps (the new key). Snapshots show 0 differ.
  • Golden masters: re-blessed on both legs (runner call sites, completeness counts).
  • Completeness pins: updated with the deltas above.
  • Compile: CardDemo and CBSA 17/17 configs.
  • Suite and gates: full suite and preflight pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

squid-protocol and others added 2 commits September 26, 2026 09:28
Batch programs are often run through a runner, so a step's PGM= named the
runner and not the program.

New core/jcl_runners.py reads each runner step:
- IKJEFT01 / 1A / 1B: the in-stream SYSTSIN. `RUN PROGRAM(x) PLAN(p)` via
  RUN PROGRAM, `CALL 'lib(x)'` via TSO CALL, `EXEC 'lib(x)'` / `%x` via TSO
  EXEC (a REXX / CLIST exec); `-` / `+` continuations; commands only (DSN
  FREE / BIND, RACF) recorded as such.
- A SYSTSIN coded as a dataset member: the member.
- DFSRRC00: PARM's second positional.

Engine:
- job_flow STEP rows gain runs / runs_via / systsin_member (new job_flow_data
  columns, rehydrated, EngineJobFlow).
- Every load-module target is an `EXEC PGM` call site of its own (form
  `runner`), so the call graph, reachability and completeness see it; a REXX
  exec rides on the step only.
- GalaxyIR.job_steps gives each step `runner_programs`, each resolved to its
  program file. A SYSTSIN member is read from `source_root`, which the
  refractor sets (CardDemo's .ctl members are not scanned); without the tree,
  or without the member, it is a finding, not a guess.
- Completeness counts the program a runner runs as a batch entry: CBSA 0/1 ->
  1/1, CardDemo 11/17 -> 16/17. Program calls: CBSA +1 (BANKDATA), CardDemo
  +5 (COBTUPDT and 4 IMS programs), all resolved; the DSNTEP2 / DSNTIAD /
  DFSURGU0 targets count as system names.

Spring Batch forge: a runner step becomes the program it runs. The
estate's program gets runBatch, with the runner in the javadoc; an IBM
utility gets a utility step. Classification:
- CBSA: 37 runner-driven jobs -> 1 application (BANKDATA), 36 utility
  (DSNTEP2, TSO RACF / console commands).
- CardDemo: runner jobs -> application (COBTUPDT, the IMS loads / unloads)
  and utility; one runner left, TXT2PDF1, a REXX exec.

Answer key and census:
- New field "JCL runner programs" (runner_steps), with units `L<line> STEP
  RUNNER RUNS=PROG/VIA` and `SYSTSIN=MEMBER`, from the key tool's own reader.
- New `runners` census suite (full, with recall files).
- 5 blind brief-only reviewers agreed on all 86 units: CBSA 31, CardDemo 13,
  GENAPP 12, zECS 30, all cross_verified. Round-tripped first: 86 units, 0
  disagreements.
- The engine matches the key on every unit, and the ledger is clean.

Verification:
- ir_join_diff --rescan: only job_steps changes (the new key).
- Golden masters re-blessed on both legs: runner call sites, completeness.
- CardDemo and CBSA: 17/17 configs compile.
- Snapshots: 0 differ.
- Full suite passes.
- Preflight passes.

Closes #3710

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
# Conflicts:
#	docs/language_status/cics_field_testing.md
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit e8c37d3 into main Sep 26, 2026
38 checks passed
@squid-protocol
squid-protocol deleted the feat/batch-runners-3710 branch September 26, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engine: resolve the program a batch runner runs (IKJEFT01 SYSTSIN 'RUN PROGRAM', DFSRRC00 PARM)

1 participant