Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

Mainframe Migration Checker

Migration data check: compare a source and a target data file field by field after a migration, or quickly compare any two record files with one copybook.Use this when (Quick compare mode: you have two versions of a file, before and after a change or a test run, and want to see which records and fields differ.) For a migration: data was moved or converted (for example from a mainframe file to another system's extract) and you want to know which records are identical, equal once dates or text are read the same way, different or missing.

Checked against IBM rulesON THIS DEVICE · NOTHING UPLOADEDCounting requests…
How to use this tool

What it does

Compares an old and a new data file field by field after a migration, with rules for fields that may be written differently, likely causes and an evidence report. One side can be an ASCII file.

How to use it

  1. Paste the copybooks, then choose the old (source) file and the new (target) file.
  2. Add rules for fields written differently, or use Quick compare for a fast first look.
  3. Read the field-by-field result and likely causes, then download the evidence report.

What it cannot do

  • It lists what differs and suggests likely causes; it cannot prove why.
  • It says ALL IDENTICAL only when every record and byte was compared, and Quick compare does not claim that.
  • A wrong copybook still gives readable-looking values, and only the first records of very large files are read.

Mode

copybook, two files and optional rules

1 · Source copybook

Target copybook (only if the target layout differs)

Equivalent rules (optional)

2 · Source file

3 · Target file

Covers: A source and a target record file (EBCDIC or ASCII) read with copybooks: every field compared by its decoded value, with optional rules that treat dates, timestamps, numbers or text written differently as equivalent. Quick compare mode reads two files with one copybook and lists records added, removed or changed.

ACCURACY · CHECKED AGAINST IBM RULES

Each file is read with the record decoder's rules and the decoded values are compared. The equivalent rules are this tool's own plain definitions (text, number, date, timestamp), not IBM rules. A wrong copybook or code page still produces readable-looking values, so check the layout and code page first. The page compares what the two files hold; it does not say why they differ.

What it checks

  • ConfirmedBoth files are read with your copybook (or one copybook each, fields matched by name); decoded values are compared, not raw bytes.
  • ConfirmedEach record gets one result: identical, equivalent (equal under a rule you set), different, or missing from one side.
  • ConfirmedRecords are matched by position or by a key field you name; summary counts and a per-field table cover every record read.
  • ConfirmedA rule applies only to the fields you name: text (case and edge spaces), number, date (YYYYMMDD, YYYY-MM-DD, YYYY/MM/DD, YYYYDDD, DD.MM.YYYY, date part of a timestamp) or timestamp (equal to the second).
  • ConfirmedA result is called clean only when every record matches and nothing was left out: fields that were not compared, data beyond the copybook layout and a file longer than the record limit are each shown and stop the clean result.
  • Depends on your systemFormat (F, V or VB) is detected from the source file unless you choose one.

What it does not check

  • UnsupportedWhether a difference is an error: the page lists what differs, not why, and a value that a rule cannot read is never called equivalent.
  • Depends on your systemThe code page and whether the copybook is the right one for the file: a wrong copybook still produces readable-looking values.
  • UnsupportedTime zones, rounding, and fields held outside the file's records (for example in a database); fields present in only one layout are named and not compared.
  • UnsupportedEverything the record decoder leaves out also applies here (COPY, RENAMES, compiler options).

Source

  • The site's own record decoder rules, as recorded in docs/FACTS.md

Checked against IBM rules. Status labels: Confirmed Depends on your system Unsupported (a rule with an official source; depends on your catalog, security, installation defaults or compiler options; not parsed and shown instead of guessing).

Input limits and example

  • Each copybook: 200,000 characters.
  • Each file up to 50 MB; the first 100,000 records of each file are compared.
  • Up to 1,000 records that are not identical are listed; the counts cover everything read.

EXAMPLE INPUT

Source copybook: OPEN-DATE PIC 9(8); target copybook: OPEN-DATE PIC X(10).

Rule: OPEN-DATE = date

20240105 and 2024-01-05 are then equivalent.

Check it yourself in one minute

  1. Open your browser's developer tools: in Chrome or Edge press F12 or right-click and choose Inspect; in Firefox press Ctrl+Shift+E for the Network Monitor; in Safari first turn on Show features for web developers under Settings, Advanced. Then open the Network tab.
  2. Keep the log across page loads (Chrome: Preserve log; Firefox: Persist Logs), then use the tool: paste your text or open a file and press the button.
  3. Look at the list. You will see only this page and its own files, loaded when the page opened. Nothing new appears when you use the tool.
  4. Still unsure? Switch Wi-Fi off and try again. The tool still works.

What the badge counts: requests the browser logged after this page finished loading, other than the site's own files. It reads the browser's own record and makes no request of its own. If your browser cannot give that record, the badge says so. The badge is a convenience; the developer tools are the proof.

The rule that enforces it

Every page carries this Content Security Policy. The browser itself refuses any request outside it; connect-src 'none' blocks fetch, XHR and WebSocket.

default-src 'none';
script-src 'self';
style-src 'self';
img-src 'self' data:;
font-src 'self';
connect-src 'none';
object-src 'none';
form-action 'none';
base-uri 'none';
manifest-src 'self';
worker-src 'self'