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

Record decoder

Read a mainframe data file with its copybook as a table, CSV or JSON.Use this when you have a mainframe file (FB or VB) and its copybook and want to read it as a table, CSV or JSON.

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

What it does

Reads a mainframe data file with its copybook and shows every record as a table you can copy as CSV or JSON.

How to use it

  1. Paste the copybook, then choose the data file (or paste it as hex).
  2. Pick the record and the code page if the defaults are wrong.
  3. Read the records as a table, and copy them as CSV or JSON.

What it cannot do

  • You choose the code page; it cannot detect it.
  • It cannot tell whether the copybook is the right one: a wrong copybook still gives readable-looking values.
  • Only the first records of a very large file are read, and the page says so.

copybook and data

1 · Copybook

2 · Data

ACCURACY · CHECKED AGAINST IBM RULES

Decoding follows the copybook and the code page you choose; packed, binary and zoned rules are covered by known-answer tests. The tool cannot detect the code page, and a wrong choice is not flagged: text just decodes to the wrong characters. For OCCURS DEPENDING ON with SYNC, offsets are estimates; confirm with the compiler listing.

What it checks

  • ConfirmedSplits a fixed (FB), variable (VB, 4-byte RDW) or hex-pasted file into records by the format and record length you give.
  • ConfirmedReads each field by the copybook: text, zoned, packed and binary, with the sign half-byte and decimal places.
  • ConfirmedFlags a field whose bytes are not valid for its type (the usual cause of an S0C7) and marks it in the record's byte map.
  • ConfirmedText is converted with the code page you choose (seven code pages are offered).
  • ConfirmedExports what it read as CSV or JSON on your device.

What it does not check

  • Depends on your systemIt cannot detect the code page; choose the one the file was written in.
  • Depends on your systemWhether the copybook is the right one for the file: a wrong copybook still produces readable-looking values.
  • UnsupportedEverything the copybook viewer leaves out also applies here (COPY, RENAMES, compiler options).
  • UnsupportedDouble-byte text is shown as hex.

Source

  • IBM z/Architecture decimal format (packed and zoned signs), as recorded in docs/FACTS.md
  • EBCDIC code page tables: Python standard codecs (IBM tables) and the ebcdic package, as recorded in docs/FACTS.md
  • Enterprise COBOL storage rules for binary and COMP-3 sizes, 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

  • File: up to 50 MB; the first 100,000 records are read.
  • Pasted hex and copybook text: 200,000 characters per box.
  • On a phone or small screen a file over 5.0 MB shows a warning.

EXAMPLE INPUT

Copybook: 05 ID PIC 9(6).  05 AMT PIC S9(5)V99 COMP-3.
Hex: F1F2F3F4F5F6 001234 5C

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'