Skip to content

Extract COBOL SELECT/ASSIGN and OPEN modes (and JCL DD bindings) by name, so dataset lineage can come from the engine #3201

Closed

Description

@squid-protocol

Found by the #3120 differential, and a stated precondition for #3120's dataset-lineage half.

The engine extracts none of a COBOL program's dataset boundary by name:

  • SELECT <file> ASSIGN TO <ddname>: file ↔ DD mapping
  • OPEN INPUT|OUTPUT|I-O|EXTEND <files>: only counted in io, with no mode or operand
  • FD record layouts

For JCL, only DSN= values reach raw_imports, not the DD name they bind.

Without these, edge_data cannot express "program P reads DD X, job J binds DD X to dataset D". So the refraction pipeline keeps its own SELECT/OPEN parser (cobol_dag_architect.extract_lineage, cobol_jcl_forge.analyze_cobol_intent) for dataset lineage and zero-trust JCL generation. That parser has its own defects (filed separately).

The ask is a named extraction channel for these, persisted per file. It could be new tables, or a dataset edge kind with the mode as an attribute. Tie-in: #3122 Phase 2 "jcl DD/PGM extraction + edge_data → Spring Batch step definitions / an Airflow DAG". Context: docs/refraction_engine_differential.md (PR for #3120).

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-engineenhancementlegacy-modernization

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions