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

What is this file?

Paste or drop a file and see what Kit recognises, what it reads fully, what it only sees the shape of and what it does not read, with the next tool to open. It includes the file health check for data files.Use this when you have a file or a paste and are not sure what it is, or what Kit can and cannot read in it; or a decoded file looks wrong or a program abends on packed data and you want to see the bytes first (the file health check).

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

What it does

Takes a file you paste or choose, names what it is, says what Kit could and could not read, and points you to the next tool.

How to use it

  1. Paste text, or choose or drop a file, in the box at the top (or press Example).
  2. Read the label on each item (Fully read, Structure only or Not read) and the list of what was not read.
  3. Open the next tool it suggests, or copy the gap report.

What it cannot do

  • It does not read PL/I, assembler, Easytrieve or Natural layouts, only COBOL copybooks.
  • It describes the bytes and does not say why they look that way.
  • A wrong copybook can still read as valid numbers.

1 · Paste or drop a file

JCL, COBOL, copybook, SQL, REXX, DFSORT, job log, RACF message or a data file

Kit labels each item Fully read, Structure only or Not read, lists what was not read, and points to the tool to open next. Nothing leaves this device and nothing is saved.

Check the bytes of a data file (file health check)

copybook and data

1 · Data

2 · Copybook (optional)

Reports what the bytes look like and where they do not match the copybook. It does not say why. Nothing leaves this device and nothing is saved.

Covers: One data file, read on your device: fixed (FB), RDW (V) or BDW and RDW (VB) records, and optionally one copybook record layout. Only the bytes are described; causes are not.

ACCURACY · CHECKED AGAINST IBM RULES

Record structure, RDW and BDW lengths and the packed, zoned and binary byte rules are plain arithmetic on your bytes, using the same readers as the record decoder. The text guess (EBCDIC letters and digits against ASCII) counts byte values and does not know your code page. The page reports what the bytes look like, never why. The "What is this file?" part recognises text by how it is written, using the readers of the other tools, and says plainly what it did not read; it can be wrong, so it points to a tool and never rules.

What it checks

  • ConfirmedFixed or RDW/BDW layout, record count, the record lengths found and whether the length chain holds to the end of the file.
  • ConfirmedFor each packed (COMP-3) field, the share of records with valid digit nibbles and a valid sign nibble, and the first 5 failing records with file offset and hex.
  • ConfirmedFor each zoned field, the share of records with valid zone and digit (and sign) bytes; for each binary field, how many values have more digits than its PIC (listed as an observation, not a failure).
  • ConfirmedShare of bytes that are EBCDIC letters, digits or spaces, share that are ASCII letters, digits or spaces, and share that are neither; how often X'0D0A', X'0A', X'3F' and X'1A' occur.
  • Depends on your systemWhich code page the text is in. The tool counts byte values only and does not know your code page.
  • Depends on your systemWhether a binary value that is larger than its PIC allows is stored by your program; this depends on compiler options such as TRUNC.

What it does not check

  • UnsupportedWhy the bytes look the way they do. The page names no cause (a transfer mode, a vendor or a program).
  • Depends on your systemWhether the copybook is the right one for the file: a wrong copybook can still read as valid numbers.
  • UnsupportedSeveral record layouts in one file, floating-point and double-byte fields, and everything the copybook viewer leaves out (COPY, RENAMES, compiler options).

Source

  • IBM z/Architecture decimal format (packed and zoned signs), 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 ACCT-ID PIC 9(6).  05 BALANCE PIC S9(7)V99 COMP-3.
Five 25-byte records; the packed field of record 4 holds 3F3F3F3F3F
Result: Layout partly fits (80% of records)

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'