Repository navigation
Mainframe fact channel: JCL job flow -- steps, conditions, dataset flow (#3451) - #3471
Merged
Merged
Conversation
Contributor
…ow (#3451) dataset_data bound each step's DDs to resolved DSNs, but not the job flow: step order, conditional execution, PROC calls, and whether a DD creates or reads its dataset -- what a batch data-flow DAG is built from. New channel job_flow_data (core/job_flow.py), one row per JOB / EXEC step / DSN DD: - JOB with its COND=; STEP with its ordinal in its job or PROC, PGM= or PROC= (or positional), COND= as written, the enclosing IF conditions (ELSE as `NOT (...)`, nesting joined with AND) and the PROC it belongs to; - DD with its DSN (generation stripped), DISP status (NEW / OLD / SHR / MOD; NEW when a DSN has no DISP) and GDG generation (+1 / 0 / -n). Proc-step override DDs (`//PRC001.FILEIN DD`) and IF / ELSE / ENDIF, which the dataset reader does not keep, are read by the channel's own statement reader; unnamed concatenation DDs take the name above them. galaxy_ir: EngineJobFlow / EngineFile.job_flow and - job_steps(): each job's steps in order, PROC calls expanded into the procedure's steps (in-stream, or the cataloged member -- .prc preferred); - job_dataset_flow(): creating DDs (DISP NEW / MOD) joined to reading DDs (SHR / OLD) of the same dataset -- resolved DSN, generation dropped -- within a job only when the reader's step is later. DISP decides, not the generation: a later step's X(+1),DISP=SHR reads what the job created. Scheduler order is not in the repository; cross-job edges are candidates. CardDemo: 56 jobs, 137 steps, all 9 PROC calls expanded, 22 conditional steps, 44 dataset producer -> consumer edges (31 cross-job, e.g. UNLDPADB -> LOADPADB). CBSA: 46 jobs, all 90 PROC calls expanded (its DSNs stay symbolic, so no edges). Ground truth: an independent reader (add-job-flow) and a scored field "JCL job flow" (drafted). Engine matches the key exactly: CardDemo 558/558, CBSA 410/410, zopeneditor 138/138. Golden masters: new Job Flow blocks only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
squid-protocol
force-pushed
the
feat/jcl-job-flow-3451
branch
from
September 24, 2026 11:10
2d2b086 to
c882393
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
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 #3451. Part of #3445. Stacked on #3470; GitHub retargets it to
mainwhen #3470 merges.What
New channel
job_flow_data(core/job_flow.py), with one row per JOB, EXEC step, and DD that names a DSN:COND=.PGM=orPROC=(or positional),COND=as written, and the enclosing IF conditions. ELSE is recorded asNOT (...)and nested conditions are joined with AND. The row also names the PROC the step belongs to.The shared statement parser drops two things this channel needs, so the channel has its own statement reader:
//PRC001.FILEIN DD);Unnamed concatenation DDs take the name of the DD above them.
New joins in
galaxy_ir:job_steps(): each job's steps in order, with PROC calls expanded into the procedure's steps. A PROC resolves in-stream, or to the cataloged member (.prcpreferred).job_dataset_flow(): DDs that create a dataset (DISP NEW / MOD) joined to DDs that read the same dataset (SHR / OLD), matched on the resolved DSN. Within one job, the reading step must come later.X(+1),DISP=SHRreads what the job created; a test caught my first version getting this wrong.Corpora
Ground truth
add-job-flow.JCL job flow, drafted.Checks
Job Flowblocks.🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g