Repository navigation
Engine: resolve the program a batch runner runs (#3710) - #3742
Merged
Merged
Conversation
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
Contributor
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.
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+ SYSTSINRUN 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.pyreads each runner step:RUN PROGRAM(x) PLAN(p)CALL 'lib(x)'EXEC 'lib(x)'/%x(REXX / CLIST)It also handles
-/+continuations. Commands-only SYSTSIN (DSN FREE / BIND, RACF) is recorded as such.Recorded facts:
runs/runs_via/systsin_member: newjob_flow_datacolumns, rehydrated, and onEngineJobFlow.EXEC PGMcall site withform: runner, so the call graph, reachability and completeness see it. A REXX exec rides on the step only.job_steps: each step hasrunner_programs, resolved to program files.GalaxyIR.source_root, which the refractor sets (CardDemo's.ctlmembers aren't scanned). A missing member is reported as a finding.Completeness (batch entry):
All the new program calls resolve. DSNTEP2 / DSNTIAD / DFSURGU0 count as system names.
Spring Batch forge
A runner step becomes the program it runs:
runBatch, with "through IKJEFT01 (RUN PROGRAM)" in its javadoc.runner, with the reason stated.Job classification after the change:
Answer key + census
runner_steps):L<line> STEP RUNNER RUNS=PROG/VIAorSYSTSIN=MEMBER, from the key tool's own JCL reader.runners: full, with recall files (runner JCL where nothing is keyed).gradefirst.Verification
ir_join_diff --rescanchanges onlyjob_steps(the new key). Snapshots show 0 differ.🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g