Skip to content

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

Closed

Description

@squid-protocol

Found while building JCL → Spring Batch (#3622).

Batch programs are often not run by EXEC PGM=<program> but through a runner:

  • DB2: EXEC PGM=IKJEFT01 / IKJEFT1B with in-stream SYSTSIN holding DSN SYSTEM(...) + RUN PROGRAM(X) PLAN(P);
  • IMS: EXEC PGM=DFSRRC00,PARM='DLI,X,PSB' (or BMP,X,PSB).

The engine records the step's program as the runner, so job_steps, dataset_lineage and the new Spring Batch generation can't see program X.

  • CBSA: 36 of its 46 JCL jobs are IKJEFT01 jobs, and none can be classified as application work.
  • CardDemo: 11 runner jobs, plus 5 DFSRRC00 steps.

Fix (engine):

  • For a runner step, resolve the program it runs:
    • IKJEFT01 / IKJEFT1A / IKJEFT1B: RUN PROGRAM(x) in the step's in-stream SYSTSIN (continued lines, - continuation, multiple RUNs);
    • DFSRRC00: the second positional of PARM=.
  • Record it as a call edge from the step (EXEC PGM via runner, resolves_to), so job_steps shows the program and dataset_lineage binds its DDs.
  • A SYSTSIN that isn't in-stream (a dataset member) gets the member resolved where the repository holds it, else stays unresolved, as a finding.
  • Answer-key / census: the JCL job flow section would gain the runner's program (PGM= plus RUNS=).

The Spring Batch forge (#3622) already lists these jobs as runner in resources/batch/jcl-jobs.json. Once the engine resolves the program, a small forge change follows: BatchForge._plan prefers the runner's resolved program over the runner's name. Then these jobs classify as application jobs, and the runner step calls the program's runBatch.

Part of #3625.

🤖 Generated with Claude Code

Activity

  1. added
    scope:frontier
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions