Repository navigation
Description
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 importPROD.ACCT.MASTER(.:5PROD.ACCT.TRANS(0)is kept with its generation. - Minimal reproducer, main 25f9233.
raw_imports = ["PROD.ACCT.HIST(", "PROD.ACCT.MASTER(", "PROD.ACCT.MASTER(0)"], whilejob_flow_datahasPROD.ACCT.MASTERgen0/+1andPROD.ACCT.HISTgen-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 withjob_flow_data's base DSN. - estate-crucible: the
jcl_datasetschannel (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
fix: train -- #4307, #4331, #4352, #4354 (#4379)