Skip to content

JCL engine: a GDG relative generation (+1) / (-1) is captured as a truncated DSN (PROD.ACCT.MASTER() in raw_imports #4331

Closed

Description

@squid-protocol

Problem

The JCL _dependency_capture rule (jcl.py, the DSN(?:AME)?= alternative) captures the DSN with the character class [A-Z…a-z0-9_#$@.&()]+. A GDG relative generation with a sign, (+1) or (-1), stops the class at the + / -. The result is a truncated name with a dangling parenthesis in file_data.raw_imports. The generation (0) has no sign, so it is kept whole. The same base therefore appears under three different spellings.

job_flow_data and dataset_data handle the same DDs correctly (base DSN plus generation). Only the import capture is wrong.

Evidence

  • estate-crucible v0.1.0 (Epic: estate-crucible -- a synthetic mainframe estate whose answer key is generated with it #4317): estate/apps/ACCT/proclib/ACCTPRC.prc:6, //ACCTOUT DD DSN=PROD.ACCT.MASTER(+1),DISP=(NEW,CATLG,DELETE),..., is recorded as raw import PROD.ACCT.MASTER(. :5 PROD.ACCT.TRANS(0) is kept with its generation.
  • Minimal reproducer, main 25f9233. raw_imports = ["PROD.ACCT.HIST(", "PROD.ACCT.MASTER(", "PROD.ACCT.MASTER(0)"], while job_flow_data has PROD.ACCT.MASTER gen 0 / +1 and PROD.ACCT.HIST gen -1:
    //GDGJOB   JOB (ACCT),'GDG',CLASS=A,MSGCLASS=X
    //STEP1    EXEC PGM=IEBGENER
    //SYSUT1   DD DSN=PROD.ACCT.MASTER(0),DISP=SHR
    //SYSUT2   DD DSN=PROD.ACCT.MASTER(+1),DISP=(NEW,CATLG,DELETE),
    //            SPACE=(CYL,(5,5),RLSE)
    //SYSUT3   DD DSN=PROD.ACCT.HIST(-1),DISP=SHR

Impact

Each GDG base turns into up to three unrelated dependency nodes (X(, X(0), X). The job's dataset dependencies in the network / blast-radius graph are split and partly garbage, and a GDG written with (+1) and read with (0) by the next job is never joined.

Acceptance criteria

  • The capture takes a relative generation ((0), (+n), (-n)) and a PDS member ((MEM)) whole, or strips them consistently to the base DSN. Never a dangling (.
  • Reproducer: no (-terminated entry, and all three references of a base agree with job_flow_data's base DSN.
  • estate-crucible: the jcl_datasets channel (v0.2.0) passes for ACCTPRC.

Related: #3451 (JCL job flow / GDG), #3201 (dataset lineage), #4317 (planted as H-0011 from v0.2.0).

Found by: estate-crucible v0.1.0 probe (#4324).

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    priority: low
    on Oct 4, 2026
  2. added a commit that references this issue on Oct 5, 2026
  3. 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

    bugcore-enginelegacy-modernizationpriority: lowscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions