All names, numbers, data set names and values in this sample are invented. Nothing here comes from any real system, company or person. The files are written by this site's own tools when the site is built; the answers below are checked by automated tests against those tools on every release, so if the tool shows something different, your copy of the file or your browser is the thing to check.
Customer master
COBOL copybook and a matching EBCDIC file: 25 fixed records of 200 bytes, with 2 records holding deliberately bad packed data.
Use with: File health check, Record decoder, Copybook viewer
- File health check: 25 records of 200 bytes, fixed layout. Verdict "Layout partly fits (92% of records)": 23 of 25 records pass. CM-BALANCE fails in record 7 (the bytes are spaces, X'404040404040') and CM-LAST-PAYMENT fails in record 19 (byte 3 has A where a digit belongs). Every other field passes in all 25 records.
- Record decoder: records 7 and 19 show INVALID in those two fields; the other 23 records decode cleanly.
- Copybook viewer: CUSTOMER-MASTER-REC is 200 bytes, with three COMP-3 fields (5, 6 and 5 bytes) and one COMP field (2 bytes).
Open it in: Open in File health check ▸ Record decoder Copybook viewer
Files in this set (3)
- CUSTMAST.cpy COBOL copybook (text)
- CUSTMAST.dat EBCDIC code page 037, RECFM=FB, LRECL=200, 25 records (binary)
- README.txt what is in this set and the exact answer
Nightly payroll job
A 3-step JCL job with deliberate mistakes: a missing DD, a new data set with no SPACE and a risky DISP.
Use with: JCL checker
- Line 7, STEP010: SORT normally needs DD SYSIN, which is missing from this step.
- Line 9, SORTOUT: a new data set without SPACE.
- Line 19, SYSUT1: DISP=(SHR,DELETE) deletes a data set that other jobs may be sharing.
- Three findings in total (all warnings), and nothing else.
Open it in: Open in JCL checker ▸
Files in this set (2)
- PAYNIGHT.jcl JCL (text)
- README.txt what is in this set and the exact answer
Order feed v1 vs v2
Two versions of one record layout (53 and 59 bytes) and a few records written in each.
Use with: Copybook compare, Mainframe Migration Checker
- Copybook compare: version 1 is 53 bytes and version 2 is 59. 1 field added (ORD-CHANNEL), 2 changed (ORD-DATE from PIC 9(8) to X(10), ORD-QTY from PIC 9(5) to 9(7)), 5 moved (ORD-CUST-ID, ORD-STATUS, ORD-UNIT-PRICE, ORD-CURRENCY, ORD-NOTE) and none removed.
- Migration data check (key ORD-ID, rule ORD-DATE = date): 4 source records and 3 target records. 2 equivalent (50010001 and 50010003: only the date is written as YYYY-MM-DD), 1 different (50010002: ORD-QTY 3 became 4), 1 missing in the target (50010004), 0 identical. ORD-CHANNEL exists only in the target, so it is not compared.
Open it in: Open in Copybook compare ▸ Mainframe Migration Checker
Files in this set (5)
- ORDER-V1.cpy version 1 copybook (text)
- ORDER-V2.cpy version 2 copybook (text)
- ORDER-V1.dat EBCDIC 037, RECFM=FB, LRECL=53, 4 records (binary)
- ORDER-V2.dat EBCDIC 037, RECFM=FB, LRECL=59, 3 records (binary)
- README.txt what is in this set and the exact answer
Each download lists its files, the record layout and the exact answer. Data files are EBCDIC (code page 037); choose them in the tool's file box, or use "Open in" to fill the tool with the sample text. Nothing is uploaded: the buttons only move the text between two pages in this browser tab.
Suggest a tool or report a wrong answer · How it works and why it is safe
No mail app opens? Write to hello@mainframepath.com . Please do not send confidential code or data.