Repository navigation
Description
Part of roadmap #3249 (Named System Facts), epic #3122.
Problem
The #3201 dataset channel (dataset_data, core/mainframe_boundary._jcl_boundary) stores a JCL DD's DSN= exactly as written. Real JCL parameterizes almost every DSN through symbolic parameters, so the DB answers "job J step S binds DD CUSTFILE to &HLQ..SAMPLE.CUSTFILE" -- a template, not a dataset. IBM/zopeneditor-sample JCL/RUN.jcl (a pinned corpus) binds every one of its DSNs this way, via // SET HLQ='IBMUSER' etc. Joining lineage across jobs on the dataset name is impossible while the name is unresolved.
Scope
Resolve JCL symbolic parameters that are statically determinable inside one file:
// SET NAME=value(quoted values,''escapes, trailing comments, several per statement)- in-stream PROC defaults (
//P PROC HLQ=PROD...// PEND) and EXEC overrides (EXEC P,HLQ=TEST/EXEC PROC=P,...), precedence EXEC > PROC default > SET &SYM/&SYM.references with JCL's period-delimiter semantics (&HLQ..X->PROD.X)&&TEMPstays a temporary dataset (never read as a symbol); it remains outside the channel as today
Out of scope (left unresolved and marked, never guessed): cataloged-PROC resolution across members, system symbols (&SYSUID, date symbols), override DDs (//STEP.DD), INCLUDE members.
Design
Additive columns on the existing dataset_data table (the raw dsn stays intact):
dsn_resolved-- the fully substituted DSN, NULL unless every symbol resolveddsn_resolution--literal|resolved|proc_default(resolved only through a PROC's own defaults, which a caller in another member may override) |ambiguous(an in-stream PROC invoked with differing values) |unresolved; NULL for COBOL rows
Threaded through the fact-channel spine: _ensure_columns + column-gated reads in the rehydrator and galaxy_ir.EngineDataset, the audit report (presence-keyed), a refraction_differential compared datum against an independent reader in the answer key, and a drafted answer-key field.
Activity
Engine: resolve JCL PROC/SET symbolic parameters in the dataset fact …
Engine: resolve JCL PROC/SET symbolic parameters in the dataset fact …
Engine: CSD resource definitions beyond TRANSACTION/PROGRAM -- csd_re…