The customer master scored 94 out of 100 on the data quality dashboard. Completeness sat at 99 percent, validity at 98, uniqueness at 100. The migration team read that number as permission to proceed, moved the dataset, and declared the wave clean. Three weeks after cutover, finance found that balance totals disagreed with the legacy ledger by amounts too small to notice on any single account and too large to ignore in aggregate. Two causes sat underneath the 94: a packed decimal field had been mapped to a floating-point column, and one record layout variant, selected by a type code the profiler never inspected, had been loaded under the wrong schema.
Nothing in that score was wrong about what it measured. It measured operational quality, and operational quality answers a different question from the one a migration asks. A modernization project needs three scores at three moments: whether the source data is fit to move, whether the data in flight still agrees with the source, and whether the migrated data behaves the same way in the target. Each score needs its own dimensions, its own thresholds, and its own source of proof.
The third requirement is the one scorecards usually omit. A score is a claim, and claims differ in how well they are supported. A completeness figure computed from a full profile of production data and a validity figure inferred from a field name in an old specification can both read 90, yet they deserve very different amounts of trust. The framework below scores the data and grades the evidence together, so a high number built on weak evidence cannot open a migration gate.
Score Quality From Source Evidence
SMART TS XL surfaces every REDEFINES hierarchy and its discriminator, so schema variant coverage is scored before migration starts.
FIND OUT MORE…Why Operational Scores Mislead Migration Teams
Operational data quality programs exist to keep running systems healthy. They measure how many records are populated, how many values fall in range, and how many keys are unique, then trend those figures over time. That design suits a stable system whose consumers already tolerate its quirks. A migration changes the consumers, the storage types, and the rules that enforce meaning, so quirks the old system absorbed silently become defects in the new one. Three gaps account for most of the distance between a healthy operational score and a safe migration. The scorecard below shows how the same dataset can look strong on one and weak on the other.
CUSTMSTR (customer master, VSAM KSDS), illustrative scorecard
Dimension Operational view Migration view
Completeness 99 91
Validity 98 84
Uniqueness 100 100
Precision-aware quality not measured 58
Schema variant coverage not measured 40
Rule preservation not measured 62
Headline score 94 71
Functional nulls pass as populated. COBOL programs routinely use spaces, zeros, or HIGH-VALUES where a relational design would use NULL. An operational profiler counts a field full of spaces as populated. The target database, which treats NULL and blank as different things, inherits a completeness problem the old score never saw.
Semantic validity lives in code. A two-digit field defined as PIC 9(2) looks valid for any value from 00 to 99. The program that reads it may accept only 01 to 12 because an 88-level condition or an IF test says so. The constraint exists in the source, not in the data, so a profiler that looks only at the data cannot score against it.
Types and layouts the profiler cannot see. Packed decimal precision, REDEFINES variants, and field positions are properties of the COBOL definition. A profiler working on extracted values sees digits and text. It cannot tell that an amount needs exact decimal handling or that a record has three overlapping layouts selected by a code in its first two bytes.
Three Checkpoints, Three Scores
A single quality score cannot serve a program that moves data over many weeks. The questions change as the data travels. Before the move, the question is whether the source is fit to leave. During the move, the question is whether what arrived still matches what left. After the move, the question is whether the target produces the same business outcomes as the source did. Research on reference-based post-migration scoring treats the legacy dataset as the baseline and aggregates dimension scores against it, with a rule for dimensions that do not apply to a given dataset. That approach covers the third checkpoint well and leaves the first two to other methods. A complete program scores all three.
| Checkpoint | Question | Score | Typical evidence | Decision it drives |
|---|---|---|---|---|
| Pre-migration | Is the source fit to move? | Migration Fitness Score | Schema derived from source, profiling of production data, dependency scope | Wave eligibility, remediation priority |
| In flight | Does staged data still agree with the source? | Reconciliation Score | Record counts, field-level comparison, tolerance rules | Continue, pause, or roll back |
| Post-migration | Does the target behave like the source? | Equivalence Score | Parallel run, reference-based comparison, regulatory outputs | Cutover and decommission approval |
The three scores share dimensions but not thresholds. A dataset may enter a wave at a Migration Fitness Score of 85, tolerate a Reconciliation Score of 98 during staging, and require near-perfect equivalence on regulatory outputs before the legacy copy is retired.
The Ten Scoring Dimensions
The framework scores ten dimensions: the six classical ones read for migration, and four that exist only because data is changing platforms. Each dimension is scored from 0 to 100 and carries its own evidence grade, introduced in the next section. Splitting the migration-specific concerns into named dimensions matters because they are the ones operational tooling does not measure, which makes them the ones most likely to hide a failure behind a healthy headline number. Cross-program consistency is folded into the consistency dimension rather than scored separately, since it is the same question asked across more than one program. Rule preservation is the newest addition and the one most often missing from migration plans.
Standard dimensions, read for migration
| Dimension | Migration reading | Typical failure |
|---|---|---|
| Accuracy | Values are correct in the source representation and in the target representation | A balance stored as packed decimal lands in a floating-point column |
| Completeness | Functional nulls (spaces, zeros, HIGH-VALUES) are counted as missing, not populated | Blank customer names scored as complete |
| Consistency | Programs that maintain overlapping views of one entity agree with each other | Customer name differs between two VSAM files |
| Validity | Semantic constraints from 88-level conditions and program logic are enforced | A month field holding 13 |
| Uniqueness | The same real-world entity appears once, even across files with different keys | One person held under two customer keys |
| Timeliness | Batch-cycle currency is checked against what the target consumers need | A monthly extract feeding a daily dashboard |
Migration-specific dimensions
| Dimension | What it scores | Typical failure |
|---|---|---|
| Structural integrity | Share of records whose bytes conform to the declared PIC and USAGE | An invalid sign nibble in a packed decimal field |
| Schema variant coverage | Share of record variants with a documented layout and a tested conversion | Reversal records loaded under the payment layout |
| Precision-aware quality | Share of numeric fields mapped to target types that hold their precision and scale | DECIMAL(13,2) required, FLOAT delivered |
| Rule preservation | Share of validation and calculation rules in the source that have an equivalent in the target | A range check that existed only in COBOL |
Evidence Grades: Scoring How Much to Trust Each Number
Every dimension score is paired with a grade describing how it was obtained. Migration readiness research outside data quality uses a similar idea, a maturity scale that runs from unknown through documented, piloted, and monitored in production. Applied to data quality, the scale separates what someone believes about the data from what has been shown about it.
| Grade | Name | How the score was obtained | Score cap |
|---|---|---|---|
| E0 | Assumed | Documentation, interviews, naming conventions | 50 |
| E1 | Inferred | A model or analyst reading of code, not yet confirmed against source lines | 65 |
| E2 | Derived | Extracted deterministically from source: FD entries, copybooks, dependency graph | 80 |
| E3 | Verified | Confirmed by profiling real production data against the derived schema | 95 |
| E4 | Reconciled | Confirmed by comparing source and target outputs under production conditions | 100 |
A dimension cannot score higher than its evidence supports. The cap is applied before the composite is calculated, which means the only way to raise a capped score is to raise its grade by doing more verification work.
python
EVIDENCE_CAP = {"E0": 50, "E1": 65, "E2": 80, "E3": 95, "E4": 100}
def capped(score: float, grade: str) -> float:
"""A dimension cannot outscore its evidence."""
return min(score, EVIDENCE_CAP[grade])
def composite(dimensions: dict, weights: dict) -> float:
"""dimensions: {"accuracy": (92, "E3"), "precision": (88, "E2"), ...}
weights: {"accuracy": 20, "precision": 14, ...} (sum to 100)"""
total = sum(
capped(score, grade) * weights[name] / 100
for name, (score, grade) in dimensions.items()
)
return round(total, 1)
# accuracy 92 at E3 stays 92; precision 88 at E2 is held at 80
Why caps rather than multipliers: A multiplier hides the reason a score is low. A cap makes the reason visible and actionable: a scorecard that shows 88 held at 80 tells the team exactly which kind of work will move it.
Weighting by Migration Target
The right weights depend on where the data is going and what will rely on it. A migration feeding regulatory reporting cannot trade precision for completeness. A migration feeding analytics or machine learning cares more about complete, deduplicated, fresh features than about the fourth decimal place of a balance. Weights should be set before scoring begins and approved by the business owner, because adjusting them after the scores arrive turns a measurement into a negotiation. The profiles below are starting points. Each column sums to 100.
| Dimension | Financial reporting | Analytics and AI target | Operational transactions |
|---|---|---|---|
| Accuracy | 20 | 14 | 16 |
| Completeness | 8 | 16 | 10 |
| Consistency | 14 | 14 | 14 |
| Validity | 10 | 8 | 12 |
| Uniqueness | 6 | 10 | 8 |
| Timeliness | 4 | 10 | 6 |
| Structural integrity | 8 | 6 | 8 |
| Schema variant coverage | 8 | 8 | 8 |
| Precision-aware quality | 14 | 6 | 8 |
| Rule preservation | 8 | 8 | 10 |
Measuring Each Dimension in Practice
Scoring starts with reading the definitions the programs actually use. The record below carries material for five of the ten dimensions, and none of it is visible to a tool that profiles only values.
cobol
01 TRANSACTION-RECORD.
05 TXN-TYPE PIC X(2).
88 TXN-PAYMENT VALUE 'PM'.
88 TXN-REFUND VALUE 'RF'.
88 TXN-REVERSAL VALUE 'RV'.
05 TXN-AMOUNT PIC S9(11)V99 COMP-3.
05 TXN-DETAIL PIC X(48).
05 TXN-PAYMENT-DATA REDEFINES TXN-DETAIL.
10 PAY-METHOD PIC X(2).
10 FILLER PIC X(46).
05 TXN-REFUND-DATA REDEFINES TXN-DETAIL.
10 REF-REASON-CD PIC X(3).
10 FILLER PIC X(45).
The three 88-level names define the valid values for TXN-TYPE, which is the validity rule. The COMP-3 clause fixes the precision requirement at 11 integer digits and 2 decimals, so the target type must be DECIMAL(13,2). The two REDEFINES clauses define two layouts selected by TXN-TYPE, the discriminator whose real values must be profiled. And a coverage gap is already visible: reversal records, value RV, have no layout defined, so any RV record converted under either layout is suspect. Once these definitions are extracted, the queries are short.
sql
-- 1. Schema variant coverage: real discriminator values against documented variants
SELECT
txn_type,
COUNT(*) AS record_count,
CASE WHEN txn_type IN ('PM', 'RF', 'RV')
THEN 'KNOWN_VALUE' ELSE 'UNDOCUMENTED' END AS discriminator_status
FROM staging_transaction
GROUP BY txn_type
ORDER BY record_count DESC;
-- 2. Validity: values outside the 88-level set
SELECT COUNT(*) AS invalid_type_records
FROM staging_transaction
WHERE txn_type NOT IN ('PM', 'RF', 'RV');
-- 3. Precision-aware quality: values beyond the declared scale or magnitude
SELECT record_key, txn_amount
FROM staging_transaction
WHERE txn_amount <> ROUND(txn_amount, 2)
OR ABS(txn_amount) >= 100000000000;
The third query catches data that upstream conversion has already damaged, since a value with more than two decimals cannot have come from a PIC S9(11)V99 field. Arithmetic drift from floating-point handling shows up at the reconciliation checkpoint, where calculated outputs from both systems are compared under tolerances derived from the declared scale.
Quality Gates and Rollback Criteria
A score that does not gate anything is a report. The gate definition below ties thresholds, evidence grades, and rollback behavior into one reviewable file that the business owner approves before a wave starts.
yaml
wave_gate:
wave: 2
tier: 1
minimum_composite: 85
minimum_dimension_score:
accuracy: 90
precision_aware_quality: 90
schema_variant_coverage: 85
rule_preservation: 80
minimum_evidence_grade:
accuracy: E3
precision_aware_quality: E3
schema_variant_coverage: E2
rule_preservation: E2
pilot_rollback_trigger:
affected_record_share: 0.10
action: pause_and_remediate
reconciliation:
cadence: per_batch_cycle
tolerance_source: declared_pic_scale
The rollback trigger reflects guidance common in published modernization roadmaps: if a pilot reveals quality problems in more than roughly a tenth of records, stop and remediate before widening scope. The grade requirements matter as much as the scores. Setting E3 as the floor for accuracy and precision means a dataset cannot pass the gate on derived evidence alone. Someone has to profile production data against the derived schema first.
| Dataset (illustrative) | Raw composite | Evidence-capped composite | Gate at 85 | Disposition |
|---|---|---|---|---|
| TRANSLOG | 88 | 87 | Pass | Migrate in wave |
| CUSTMSTR | 91 | 82 | Held | Profile production values to reach E3 |
| RATETBL | 96 | 78 | Held | High score on documentation only; verify before moving |
| ACCTHLD | 79 | 64 | Fail | Remediate consistency, then rescore |
The RATETBL row shows why the cap exists. A raw 96 built on documentation would have sailed through a conventional gate. The capped 78 sends the dataset back for the cheapest possible fix: look at the real data.
How SMART TS XL, ASK AI, and the MCP Connector Produce the Evidence
SMART TS XL supplies the evidence layer this framework depends on, and its ASK AI and MCP Connector releases change how quickly, and from where, that evidence can be gathered.
SMART TS XL static code analysis parses FD entries, COPY members, SELECT clauses, and 88-level conditions across the COBOL portfolio and produces the field-level inventory that dimension scoring needs: every field with its PIC and USAGE, every REDEFINES hierarchy with its discriminator, every COMP-3 field with its precision and scale. Because the inventory is derived from source rather than recalled or estimated, it earns an E2 grade for structural integrity, schema variant coverage, and precision-aware quality before any production data is touched. Application dependency mapping adds the cross-program view: which programs write a field, which redefine it, and which downstream datasets inherit it. That is the evidence behind the consistency dimension and the basis for deciding which datasets must be scored together. Structural impact analysis then turns the same graph into wave scope, so a gate decision for one dataset accounts for the programs that depend on it. Dead code identified through legacy modernization analysis removes unreachable programs from scoring scope, so no effort goes into grading data that nothing reads.
ASK AI over verified context works from a scoped result set instead of an empty prompt box. A team selects the programs, copybooks, and DB2 tables that relate to a dataset and asks questions about exactly that scope. Saved, parameterized prompts make the same scoring questions repeatable from wave to wave, background analysis handles large scopes, and reports and history are retained. The property that matters most for grading is traceability: findings stay linked to the source lines they came from. A reviewer can open the line behind an AI-extracted validation rule and confirm it, which is the step that promotes an E1 finding to E2.
The SMART TS XL MCP Connector exposes the same intelligence to approved assistants such as ChatGPT, Claude, Copilot, Gemini, and Grok, through search, cross-reference, field lineage, source retrieval, and control flow tools. It is read-only, authenticated, and role-based. A data steward can ask from the assistant already open on their desk, with no exports and no copy-paste. Teams working this way use enterprise search across languages to find every program that touches a field before scoring its consistency, then pull the evidence into the scorecard.
| Dimension | Question for ASK AI or an MCP-connected assistant | Evidence produced |
|---|---|---|
| Structural integrity | List every COMP-3 field in the CUSTMSTR record family with precision and scale | Field inventory, grade E2 |
| Schema variant coverage | Which fields redefine TXN-DETAIL, and which programs use each variant? | Variant map and consumers, grade E2 |
| Consistency | Which programs write CUST-BALANCE, and which redefine it? | Where-used report, grade E2 |
| Rule preservation | Extract every validation rule from the payment cycle | Rule catalog with source lines, E1 until reviewed, then E2 |
| Reconciliation design | Generate boundary and exception test scenarios from this program’s logic | Test scenarios tied to program branches |
Two boundaries keep the grades honest. SMART TS XL analyzes source and structure; it does not profile production values, so E3 evidence still comes from profiling the data against the derived schema, and E4 from reconciliation. And an AI-generated explanation, however fluent, starts at E1 until a reviewer confirms it against source. The combination is what makes the framework practical: deterministic structure gives the scores a foundation, AI makes the rule and test extraction fast enough to finish before the wave starts, and the grades record which parts have been confirmed.
A Score Without Evidence Is a Guess With Decimals
The customer master that scored 94 had every operational dimension in order and three migration dimensions unmeasured. The rescored version of the same dataset reads 71, with evidence grades attached that show exactly why: precision handling was assumed, not derived, and one record variant had no documented layout. Nothing about the data changed between the two scorecards. What changed was the question being asked and the standard of proof required to answer it.
A modernization quality framework earns its cost at the point where it says no. It says no to a wave because a discriminator value has no layout, no to a gate because a high score rests on documentation, and no to a cutover because reconciliation has not yet reached a tolerance derived from the actual field definitions. Each of those refusals is cheap on the day it happens and expensive three weeks after cutover. Score the data, grade the evidence, and let the lower of the two decide.


