Jump to: Copybook viewer · Record decoder · Packed decimal calculator · EBCDIC converter · Mainframe date converter · Block size and space calculator · JCL checker · JCL generator · DFSORT helper · COBOL debugger · Why was I denied? · Test data masker · Db2 SQL explainer · COBOL structure analyser · REXX lab · Test data generator · JCL compare · Copybook compare · Mainframe Migration Checker · Job log reader · What is this file? · Site search
Copybook viewer
Paste a COBOL copybook and see every field's position, length and type.
Open Copybook viewer Stable address: /tools/copybook-viewer/
What it checks
- ConfirmedPosition, length and type of every field, from PIC and USAGE (DISPLAY, COMP, COMP-3, COMP-1, COMP-2).
- ConfirmedTotal record length (LRECL), with OCCURS tables sized by their maximum count.
- ConfirmedREDEFINES overlays, so fields that share the same bytes are marked.
- ConfirmedBinary size by digits (2, 4 or 8 bytes) and COMP-3 size (digits / 2 + 1 bytes).
- Depends on your systemSYNC slack bytes, using IBM's boundary rule; the compiler's own storage map is final.
- ConfirmedA Gotchas panel under the export: for packed decimal, signs, binary byte order, EBCDIC text, REDEFINES and OCCURS DEPENDING ON, it shows only the cards that match a field in your layout, names those fields, and cites the IBM page.
What it does not check
- UnsupportedCOPY and REPLACE are not expanded, and RENAMES (level 66) is not shown.
- UnsupportedVALUE, BLANK WHEN ZERO and JUSTIFIED are not applied; edited and floating-point pictures are measured but not converted.
- Depends on your systemCompiler options such as TRUNC and NSYMBOL are not applied; check the compiler's own storage map.
- UnsupportedDouble-byte text is shown as hex, and a plain PIC N is read as national text.
- UnsupportedSYNC alignment of items after an OCCURS DEPENDING ON table is not recomputed for smaller counts.
Source
- Enterprise COBOL storage rules (PIC, COMP, COMP-3, OCCURS, REDEFINES), as recorded in docs/FACTS.md
- IBM Enterprise COBOL for z/OS 6.5.0, Language Reference: Slack bytes within records
- IBM Enterprise COBOL 6.4 Language Reference: Computational items
- IBM Enterprise COBOL for z/OS 6.5.0, Language Reference: Computational items
- IBM Enterprise COBOL for z/OS 6.5.0, Language Reference: SIGN clause
- IBM Enterprise COBOL for z/OS 6.5.0, Programming Guide: CODEPAGE
- IBM Enterprise COBOL for z/OS 6.5.0, Language Reference: REDEFINES clause
- IBM Enterprise COBOL for z/OS 6.5.0, Language Reference: OCCURS DEPENDING ON clause
Limits
- Copybook text: 200,000 characters.
- The layout list shows up to 5,000 fields; the rest are not listed.
Example
01 CUSTOMER-REC.
05 CUST-ID PIC 9(6).
05 CUST-NAME PIC X(20).
05 BALANCE PIC S9(7)V99 COMP-3.Record decoder
Read a mainframe data file with its copybook as a table, CSV or JSON.
Open Record decoder Stable address: /tools/record-decoder/
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
Limits
- 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
Copybook: 05 ID PIC 9(6). 05 AMT PIC S9(5)V99 COMP-3.
Hex: F1F2F3F4F5F6 001234 5CPacked decimal calculator
Turn numbers into packed, zoned or binary hex, and back.
Open Packed decimal calculator Stable address: /tools/packed-decimal/
What it checks
- ConfirmedNumber to the hex bytes of a packed (COMP-3) field, with the sign half-byte (C positive, D negative; F when the field has no sign).
- ConfirmedHex back to a number, rejecting an invalid digit or sign half-byte the way a data exception (S0C7) would.
- ConfirmedZoned decimal (DISPLAY) encoding and decoding, including the sign zone.
- ConfirmedBinary (COMP) sizes by digits: 2 bytes for 1-4 digits, 4 for 5-9, 8 for 10-18.
What it does not check
- UnsupportedFloating point (COMP-1, COMP-2) is not converted here.
- Depends on your systemCompiler options such as TRUNC, which change how binary values are stored.
- Depends on your systemWhether your program expects a particular sign nibble (C versus F) for positive values.
Source
- IBM z/Architecture decimal format; Mainframe Path S0C7 page, as recorded in docs/FACTS.md
- Enterprise COBOL storage rules (binary sizes, COMP-3 bytes), as recorded in docs/FACTS.md
Limits
- Each box: 200,000 characters.
Example
PIC S9(7)V99, number -12345.67 -> 001234567DEBCDIC converter
Convert text to EBCDIC hex and back, in seven code pages.
Open EBCDIC converter Stable address: /tools/ebcdic-converter/
What it checks
- ConfirmedText to EBCDIC hex and EBCDIC hex back to text in seven code pages (037, 1140, 1047, 500, 1148, 273, 285).
- ConfirmedThe full code chart for the page you pick, so any byte can be looked up.
- ConfirmedBoth 037 and 1047 are offered, so you can compare them: they differ at 15 and 25 and at the bytes 5F, AD, B0, BA, BB and BD.
What it does not check
- Depends on your systemIt cannot detect which code page a file uses; you choose it.
- UnsupportedCode pages other than the seven listed, and double-byte (DBCS) code pages, are not offered.
- Depends on your systemHow your terminal emulator or file transfer translates characters on its way to your screen.
Source
- EBCDIC code pages 037, 500, 273, 285, 1140, 1148 (Python standard codecs, IBM tables) and 1047 (the ebcdic package), as recorded in docs/FACTS.md
Limits
- Text and hex boxes: 200,000 characters each.
Example
HELLO, WORLD 123 (code page 037) -> C8C5D3D3D66B40E6D6D9D3C44040F1F2F3Mainframe date converter
Julian YYDDD, CYYDDD, Lilian days and STCK clock values to real dates.
Open Mainframe date converter Stable address: /tools/date-converter/
What it checks
- ConfirmedJulian dates YYDDD and YYYYDDD, and CYYDDD where C is 0 for 19xx and 1 for 20xx.
- ConfirmedThe packed TIME macro form 0CYYDDDF.
- ConfirmedLilian day numbers (day 1 is 15 October 1582, as in Language Environment CEEDAYS).
- ConfirmedSTCK time-of-day clock values (64-bit, bit 51 is one microsecond, epoch 1 January 1900), shown in UTC.
What it does not check
- Depends on your systemTwo-digit years are placed by the window you set (default from 1950); your program's own windowing may differ.
- UnsupportedTime zones and leap seconds: STCK values are shown in UTC only.
- UnsupportedDates in other calendars or in other date-format options of your applications.
Source
- z/OS TIME macro (DATETYPE=YYDDD), as recorded in docs/FACTS.md
- Language Environment CEEDAYS definition (Lilian day 1), as recorded in docs/FACTS.md
- z/Architecture TOD clock; the value for 1 January 1970, X'7D91048BCA000000', is cross-checked by calculation in the tests (docs/FACTS.md)
Limits
- Each box: 200,000 characters.
Example
2026299 -> 26 October 2026 (Julian year 2026, day 299)Block size and space calculator
Best BLKSIZE for your record length and the space a file needs on 3390.
Open Block size and space calculator Stable address: /tools/block-size/
What it checks
- ConfirmedBest BLKSIZE for a record length on a 3390, for fixed (FB) and variable (VB) records, at half a track or better.
- ConfirmedBlocks per track for any block length, checked against every row of IBM's 3390 track-capacity table (blocks without keys): two blocks at 27,998 bytes, one at 56,664.
- ConfirmedSPACE in tracks and cylinders for a number of records (15 tracks per cylinder).
- ConfirmedWarns when LRECL is above the largest ordinary block size, 32,760.
What it does not check
- UnsupportedDevice types other than 3390 (3390 is the only device in the tool).
- UnsupportedCompressed and extended-format data sets, whose space use differs.
- Depends on your systemSystem-determined block size (BLKSIZE=0) and your site's storage-class and SMS rules.
- UnsupportedPDS directory blocks and secondary-extent behaviour.
Source
- IBM z/OS 3.2.0 DFSMS Using Data Sets, Basic access methods track capacity (3390 track capacity without keys, 27,998 most efficient block, cylinder = 15 tracks; page updated 29 Jul 2026, checked 15 Nov 2026)
- IBM z/OS 3.2.0 DFSMS Macro Instructions for Data Sets, Direct access storage devices (3390: 56,664 bytes per track, 15 tracks per cylinder, 27,998 most efficient block; page updated 24 Jun 2026, checked 15 Nov 2026)
Limits
- Numbers only: LRECL up to 32,760 (the largest ordinary block size).
Example
RECFM FB, LRECL 80, 500,000 recordsJCL checker
Find common JCL mistakes and read each statement in plain English.
Open JCL checker Stable address: /tools/jcl-checker/
What it checks
- ConfirmedColumns, continuation lines, statement and step names, and operand syntax (JOB, EXEC, DD).
- ConfirmedDISP, SPACE and DCB values, PARM length (100 characters at most) and data set names (44 characters, 8 per qualifier).
- ConfirmedCOND and the DD names common utilities need (for example SYSIN and SYSPRINT).
- ConfirmedSecurity habits: PASSWORD on the JOB card, GROUP or PASSWORD without USER, PROTECT=YES, and passwords written in in-stream data.
- Depends on your systemData-set flow: which step creates, reads, updates or deletes each data set, and whether a step is bypassed by COND, with each finding labelled.
- ConfirmedBatch estate summary over every job in the text: steps, programs, procedure calls, and which data sets each step reads and writes, with data sets passed between jobs. A program counts as a utility only when IBM's DFSMS utility list names it.
What it does not check
- UnsupportedThe estate summary does not expand procedures or INCLUDE members, and shows read and written as the JCL says, not as the program behaves.
- Depends on your systemWhether data sets, programs and procedures exist or are cataloged on your system.
- Depends on your systemSecurity (RACF or equivalent) permissions and installation defaults for job class, accounting and SPACE.
- UnsupportedProcedures (PROC calls and in-stream PROCs), JCLLIB, INCLUDE, overrides, GDG numbers and symbols other than a plain SET NAME=value.
- Depends on your systemReturn codes of programs, so an IF/THEN/ELSE or most COND tests cannot be decided before the job runs.
- Depends on your systemA job that passes this check can still fail on z/OS; only z/OS resolves symbols, procedures and defaults.
Source
- z/OS MVS JCL Reference (columns, continuation, DISP, PARM, DSN), as recorded in docs/FACTS.md
- RACF guide: JCL (security checks on JOB, USER, PROTECT)
- z/OS MVS JCL Reference: Status subparameter (data-set flow)
- z/OS MVS JCL Reference: COND parameter (z/OS 3.1)
- z/OS 3.2.0 DFSMSdfp Utilities: Guide to utility program functions (names of the DFSMS utilities)
Limits
- JCL text: 200,000 characters.
- The estate summary lists up to 200 jobs and 500 data sets; the counts cover everything.
- Operands end at column 71; columns 73-80 are ignored.
Example
//MYJOB JOB (ACCT),'NAME',CLASS=A
//STEP1 EXEC PGM=IEFBR14
//DD1 DD DSN=MY.NEW.FILE,DISP=(NEW,CATLG)JCL generator
Fill in a form to get ready-to-run JCL for everyday jobs.
Open JCL generator Stable address: /tools/jcl-generator/
What it checks
- ConfirmedBuilds a JOB card from the job name, accounting, class and MSGCLASS you enter, with optional NOTIFY.
- ConfirmedTemplates for IEFBR14 allocation, IDCAMS delete and VSAM define, IEBGENER and IEBCOPY copies, DFSORT and TSO batch.
- ConfirmedStatements are wrapped at column 71 with continuation lines, and the job can be sent straight to the JCL checker.
What it does not check
- Depends on your systemYour site's JOB card, job classes, accounting and storage rules: replace the example names before you submit.
- Depends on your systemWhether the data sets you name exist, or whether you may create or read them.
- UnsupportedUtility options beyond the common ones in each template.
Source
- z/OS MVS JCL Reference and the z/OS utility references (IEFBR14, IDCAMS, IEBGENER, IEBCOPY); no page-level addresses are recorded in docs/FACTS.md
Limits
- Each text box: 200,000 characters.
Example
Task: Create a data set (IEFBR14); job name MYJOB01, class A, MSGCLASS XDFSORT helper
Build SORT, INCLUDE and OUTREC statements, or explain existing ones.
Open DFSORT helper Stable address: /tools/dfsort-helper/
What it checks
- ConfirmedBuilds and explains SORT and MERGE FIELDS, OPTION COPY, INCLUDE and OMIT COND, INREC and OUTREC BUILD, and SUM FIELDS=NONE.
- ConfirmedExplains OUTFIL parameters from IBM's OUTFIL page: FNAMES, FILES, INCLUDE, OMIT, SAVE, BUILD, SPLIT, SPLITBY, STARTREC, ENDREC, SAMPLE and ACCEPT.
- Depends on your systemWhere an OUTFIL result depends on the run (for example the SORTOUT or SORTDD setting), it says so.
What it does not check
- UnsupportedJOINKEYS, JOIN UNPAIRED and REFORMAT are not explained.
- UnsupportedICETOOL operators (COUNT, DISPLAY, OCCUR, RANGE, SELECT, SPLICE, STATS, UNIQUE, VERIFY and others) are not explained.
- UnsupportedPARSE, OVERLAY, FINDREP, IFTHEN, VTOF and report parameters in OUTFIL; BUILD or OUTREC items the parser does not recognise are shown as written.
- Depends on your systemThe sample run applies the common statements to records you type; it is a simulation, not DFSORT itself, and installation defaults and exits are not modelled.
Limits
- Control statements and sample records: 200,000 characters per box.
- The sample run uses the first 40 sample lines.
Example
INCLUDE COND=(15,2,CH,EQ,C'NY')
SORT FIELDS=(1,10,CH,A)
OUTREC BUILD=(1,10,2X,15,2)COBOL debugger
Step through a COBOL program line by line and watch every field change.
Open COBOL debugger Stable address: /tools/cobol-debugger/
What it checks
- ConfirmedRuns fixed-format or free-format Enterprise COBOL one statement at a time, with breakpoints and a variable watch that shows packed-decimal bytes.
- ConfirmedDetects invalid numeric data (S0C7) and shows the field and bytes responsible.
- ConfirmedCALL, CANCEL, COPY members, sequential files, SORT of a file, floating point stored as IBM hexadecimal, and Db2 stored-procedure result sets, with the rules recorded in docs/FACTS.md.
- Depends on your systemEXEC SQL and EXEC CICS stop and ask for the result; the rows and codes you type are used as given.
What it does not check
- UnsupportedSORT of a table, MERGE, SORT with COLLATING SEQUENCE and recursive CALLs stop with a message.
- UnsupportedCALL USING ADDRESS OF, and floating-point literals or numeric literals BY REFERENCE as CALL arguments, stop with a message.
- Depends on your systemCompiler options, run-time options and Language Environment settings of your site can change results.
- Depends on your systemCOMP-2 arithmetic keeps about 15-16 significant digits, a little less than z/OS; plain MOVEs keep every bit.
- Depends on your systemIt simulates a program; it is not a compiler and does not run Db2 or CICS. Confirm on z/OS.
Source
Limits
- Program, copy members, called programs and inputs: 200,000 characters per box.
- A run stops after 1,000,000 statements.
Example
IDENTIFICATION DIVISION.
PROGRAM-ID. DEMO.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 N PIC 9(3) VALUE 5.
PROCEDURE DIVISION.
ADD 1 TO N.
DISPLAY N.
STOP RUN.Why was I denied?
Paste a RACF ICH408I message to see why access was refused and what to ask for.
Open Why was I denied? Stable address: /tools/why-denied/
What it checks
- ConfirmedReads an ICH408I message: user, group, resource, class, volume, the reason line, and the access wanted and allowed.
- ConfirmedFollows IBM's access-checking order against the access list, groups, ID(*), UACC, OPERATIONS and WARNING mode, when you paste LISTDSD or RLIST output.
- ConfirmedExplains the access levels NONE, EXECUTE, READ, UPDATE, CONTROL and ALTER, and what to ask your security team for.
- ConfirmedReads LISTUSER output and reports the user's REVOKE DATE.
What it does not check
- Depends on your systemGlobal access tables, security labels, installation exits, conditional access lists, PROTECTALL and class settings are not modelled.
- Depends on your systemYour site's own settings and profiles: the security team's own check is final.
- UnsupportedMessages other than ICH408I, and security products other than RACF.
- UnsupportedOutput layouts of LISTDSD, RLIST and LISTUSER that differ from the ones documented are read tolerantly and may be missed.
Source
Limits
- Message, profile and user boxes: 200,000 characters each.
Example
ICH408I USER(USER01 ) GROUP(BATCH ) NAME(BATCH USER )
USER01.PAY.MASTER CL(DATASET ) VOL(VOL001)
INSUFFICIENT ACCESS AUTHORITYTest data masker
Replace names, accounts and other sensitive fields in a mainframe file with realistic fake values.
Open Test data masker Stable address: /tools/test-data-masker/
What it checks
- ConfirmedReplaces the fields you choose (text, zoned, packed and binary) byte by byte, using the copybook layout.
- ConfirmedKeeps every record length and every unmasked byte unchanged, and keeps masked numbers valid for their type and sign.
- ConfirmedThe same key and the same value always give the same masked value, so files still match after masking.
- ConfirmedA completion report says what was and was not changed; the download stays locked until you accept a partial mask.
What it does not check
- Depends on your systemIt is not anonymisation: fields you keep, free text, keys and values it cannot change can still identify people.
- Depends on your systemWhich fields are sensitive: suggestions are a starting point, and your organisation's data rules decide.
- UnsupportedFloating point, pointer and index, national (UTF-16), DBCS and scaled (P) fields are copied unchanged, and the report lists them.
- Depends on your systemMasked values can repeat by chance, and a short or guessable key can be tested by someone who knows a real value.
Source
- Mainframe KIT's own code page tables (A-Z, a-z and 0-9 share byte values across the offered code pages), checked by tests/unit/mask.test.ts
- Same encodings and signs as the packed decimal calculator (docs/FACTS.md)
- Keyed HMAC-SHA256 (Web Crypto): design note stated on the page
Limits
- File: up to 50 MB; up to 1,000,000 records are masked, the rest is copied unchanged and the report says so.
- Copybook, hex and key boxes: 200,000 characters each.
- On a phone or small screen a file over 5.0 MB shows a warning.
Example
Copybook: 05 NAME PIC X(20). 05 BAL PIC S9(7)V99 COMP-3.
Choose NAME: scramble, BAL: scramble, key: any long private phraseDb2 SQL explainer
Paste a SQL statement and read it in plain English: order of evaluation, host variables and the SQLCODEs to expect.
Open Db2 SQL explainer Stable address: /tools/db2-sql/
What it checks
- ConfirmedThe order Db2 works through a query: FROM, WHERE, GROUP BY, HAVING, the select list, ORDER BY, then OFFSET and FETCH FIRST.
- ConfirmedSELECT INTO: no row gives SQLCODE +100, more than one row gives -811, and a null value with no indicator variable gives -305.
- ConfirmedHost variables: which ones Db2 reads (input) and which it fills (output), and whether each has an indicator variable.
- ConfirmedCursors in the order written: OPEN of an open cursor, FETCH or CLOSE of a closed one, positioned UPDATE or DELETE on a cursor declared without FOR UPDATE.
- Depends on your systemThe isolation clause (WITH UR, CS, RS, RR) and the bound default when there is none.
- ConfirmedSQLCODE and SQLSTATE tests in the surrounding COBOL, linked to the matching code page when this site has one.
What it does not check
- Depends on your systemTable and column definitions, so whether a column can be null, a key is unique or a table exists is never known.
- Depends on your systemBind options, access paths and what the optimizer chooses; the tool explains the statement, not its performance.
- UnsupportedRecursive common table expressions, XML and JSON functions, temporal tables, window functions, GROUPING SETS, ROLLUP, CUBE, table functions and rowset processing.
- UnsupportedClauses after the column list of CREATE TABLE, details of ALTER actions, and CREATE for objects other than TABLE, INDEX and VIEW.
Source
- Db2 13 for z/OS SQL Reference: SELECT INTO
- Db2 13 for z/OS Performance: Specifying isolation levels in SQL statements
- Db2 13 for z/OS Application Programming and SQL Guide: Executing SQL statements by using a row cursor
- Db2 for z/OS Codes: the SQLCODE pages cited on this site's SQLCODE pages
Limits
- SQL text: 200,000 characters.
Example
SELECT NAME, BAL INTO :CUST-NAME :CUST-IND, :CUST-BAL
FROM ACCT
WHERE ID = :CUST-IDCOBOL structure analyser
See a COBOL program's paragraphs, PERFORM and GO TO links, CALLs, files and unreachable code.
Open COBOL structure analyser Stable address: /tools/cobol-structure/
What it checks
- ConfirmedDivisions, sections and paragraphs with their line ranges, from the fixed reference format (columns 7 and 8 to 72, comment and continuation lines).
- ConfirmedWho PERFORMs whom (including THRU ranges and loop forms), GO TO and GO TO DEPENDING ON, and SORT INPUT and OUTPUT PROCEDURE ranges.
- ConfirmedCALL targets, marked static or dynamic: a literal is static under NODYNAM and dynamic under DYNAM; an identifier is always dynamic.
- Depends on your systemParagraphs that no PERFORM, GO TO or fall-through reaches, with a caveat when ALTER or an entry point could change that.
- ConfirmedFiles from FILE-CONTROL (organisation, access mode, keys, file status), COPY members, the EXEC SQL and EXEC CICS blocks with the paragraph each sits in, and a construct inventory (counts of EXEC, CALL, COPY, REDEFINES, COMP-3, OCCURS DEPENDING ON, GO TO, ALTER and more, comments and literals excluded).
- Depends on your systemWHENEVER and HANDLE CONDITION, HANDLE AID and HANDLE ABEND branches, shown as links that happen only when the condition occurs.
What it does not check
- UnsupportedThe inventory counts what is written, not what runs, and misses anything inside a COPY member or decided at run time; its own list says what else it cannot see.
- UnsupportedCOPY members are never expanded and COPY REPLACING and REPLACE are not applied, so names inside them are not seen.
- UnsupportedALTER and a GO TO with no name are not followed, so the flow that depends on them is not known.
- UnsupportedNested or batched programs, object-oriented COBOL (CLASS-ID, METHOD-ID, INVOKE) and free-format source selected by a >>SOURCE FORMAT directive.
- Depends on your systemWhether a condition ever occurs at run time, so a conditional branch is shown as possible, not as certain.
Source
- Enterprise COBOL for z/OS 6.4 Language Reference: Reference format
- Enterprise COBOL for z/OS 6.4 Language Reference: PERFORM statement
- Enterprise COBOL for z/OS 6.4 Language Reference: Unconditional GO TO
- Enterprise COBOL for z/OS 6.4 Language Reference: Conditional GO TO
- Enterprise COBOL for z/OS 6.4 Language Reference: CALL statement
- Enterprise COBOL for z/OS 6.4 Programming Guide: DYNAM
- Enterprise COBOL for z/OS 6.4 Language Reference: SORT statement
- Enterprise COBOL for z/OS 6.4 Language Reference: FILE-CONTROL paragraph
- Db2 13 for z/OS SQL Reference: WHENEVER
- CICS TS 6.x application development reference: HANDLE CONDITION
Limits
- Program text: 200,000 characters.
Example
IDENTIFICATION DIVISION.
PROGRAM-ID. DEMO.
PROCEDURE DIVISION.
0000-MAIN.
PERFORM 1000-INIT.
PERFORM 2000-WORK UNTIL DONE.
STOP RUN.
1000-INIT.
CONTINUE.
2000-WORK.
CALL 'SUBPROG'.
9999-OLD.
CONTINUE.REXX lab
Step through a small REXX program line by line and watch its variables, output and calls.
Open REXX lab Stable address: /tools/rexx-lab/
What it checks
- ConfirmedDecimal arithmetic with NUMERIC DIGITS (default 9), including % and //, exponential notation and the error for division by zero.
- ConfirmedOperator priority, number versus string comparison, and the value of a variable that was never set (its own name in capitals).
- ConfirmedStem and compound variables, DO with TO, BY, FOR, WHILE and UNTIL, LEAVE and ITERATE, and SELECT.
- ConfirmedCALL and RETURN for routines in the same program, with PROCEDURE and EXPOSE, and the call stack at every step.
- Depends on your systemPARSE templates by words, literal strings and columns, and PULL taking the input lines you supply.
What it does not check
- UnsupportedADDRESS and host commands, EXECIO, OUTTRAP, files and the data stack (PUSH, QUEUE): the run stops with a message instead.
- UnsupportedINTERPRET, SIGNAL, CALL ON, TRACE, NUMERIC FORM and FUZZ, DATE and TIME, and external routines or functions.
- Depends on your systemHexadecimal strings and string order use EBCDIC code page 037; other code pages are not modelled.
- Depends on your systemPowers that need more than DIGITS digits are rounded once, so the last digit can differ from z/OS.
Source
- IBM z/OS TSO/E REXX Reference: REXX instructions, built-in functions, parsing, numbers and arithmetic, expressions and operators
Limits
- Program text: 200,000 characters.
- Each run stops after 100,000 statements, 10,000 lines of output, 200 nested calls or 2.0 MB of variable data.
Example
total = 0
do i = 1 to 3
total = total + i * 10
say 'step' i 'total' total
end
call show total
exit
show: procedure
parse arg n
say 'done:' n
returnTest data generator
Paste a copybook and get a valid test file of any size, with values you can fix per field.
Open Test data generator Stable address: /tools/test-data-generator/
What it checks
- ConfirmedEvery generated field is written with the same encoders that the record decoder reads back, so the file decodes to the values shown in the table.
- ConfirmedThe same copybook, record count, seed and settings always produce the same file.
- ConfirmedRecord lengths come from the copybook sizing rules; a VB file gets a 4-byte record descriptor word on every record.
- ConfirmedFixed values, number ranges and value lists you give for a field are checked against the field's picture before anything is written.
- ConfirmedText is converted with the code page you choose; a value the code page cannot hold is refused with a message.
What it does not check
- UnsupportedVALUE clauses, level-88 conditions, REDEFINES views other than the first, and OCCURS DEPENDING ON counts below the maximum are not generated.
- UnsupportedFloating point, pointer, index, national, double-byte and edited pictures are written as zeros or spaces.
- UnsupportedBusiness rules between fields (for example a date that must follow another date) are not modelled; use fixed values for those fields.
- Depends on your systemWhether your program or system accepts the file (data set attributes, target character set, block descriptors) is not checked.
Source
- The site's own copybook viewer and record decoder rules, as recorded in docs/FACTS.md
Limits
- Copybook text: 200,000 characters.
- Up to 100,000 records and 50 MB per file; a larger request is cut to the limit and the page says so.
- The table shows the first 10 records.
Example
01 ORDER-REC.
05 ORDER-ID PIC 9(6).
05 CUSTOMER-NAME PIC X(20).
05 STATUS-CODE PIC X(1).
05 ORDER-TOTAL PIC S9(7)V99 COMP-3.
Fixed values: STATUS-CODE = A|B|CJCL compare
See which steps, DD statements and parameters differ between two versions of a job.
Open JCL compare Stable address: /tools/jcl-compare/
What it checks
- ConfirmedSteps are matched by step name; a step with a different name at the same position is shown as renamed.
- ConfirmedDD statements are matched by DD name inside each step; added, removed and changed DDs are listed with each parameter's before and after.
- ConfirmedDifferences in spacing, columns and continuation layout are ignored, so only real parameter changes are listed.
- ConfirmedThe tool compares DSN and DSNAME as one parameter, and the subparameters of DCB are compared one by one.
- ConfirmedIn-stream data (SYSIN and similar) is compared line by line.
What it does not check
- UnsupportedProcedures (PROC, INCLUDE) are not expanded, and symbols (&NAME) are compared as written, not resolved.
- Depends on your systemWhether a change matters to the job's result, or whether either JCL is valid; use the JCL checker for that.
- ConfirmedComments are ignored, so a changed comment is not reported.
Source
- The site's own JCL reader (the one the JCL checker uses), as recorded in docs/FACTS.md
Limits
- Each JCL listing: 200,000 characters.
- Up to 1,000 differing steps are listed; the counts cover everything.
Example
//NIGHTLY JOB (ACCT),'RUN',CLASS=A
//STEP010 EXEC PGM=SORT
//SORTIN DD DSN=MY.IN,DISP=SHR
versus the same job with CLASS=B and REGION=0M on STEP010Copybook compare
See which fields were added, removed, moved or resized between two copybook versions.
Open Copybook compare Stable address: /tools/copybook-compare/
What it checks
- ConfirmedFields are matched by qualified name; a field present in only one copybook is listed as added or removed.
- ConfirmedA field whose only change is its offset is listed as moved; a field with a different name at the same position is listed as renamed.
- ConfirmedLevel, offset, length, usage, picture, OCCURS and REDEFINES are compared for every matched field.
- ConfirmedThe record length of each 01 record is compared, using the copybook viewer's sizing rules.
- ConfirmedCopybook errors found while reading either side are listed before the differences.
What it does not check
- UnsupportedCOPY and REPLACE are not expanded, so fields brought in by COPY are not seen.
- UnsupportedVALUE clauses and level-88 conditions are not compared.
- Depends on your systemWhether the change breaks a program or a file that uses the copybook; compare real files with the Mainframe Migration Checker (Quick compare).
Source
- The site's own copybook viewer rules, as recorded in docs/FACTS.md
Limits
- Each copybook: 200,000 characters.
- Up to 5,000 fields per record are compared, and up to 1,000 differences are listed; the counts cover everything.
Example
01 CUSTOMER-REC.
05 CUST-ID PIC 9(6).
05 CUST-NAME PIC X(20).
versus the same record with CUST-ID PIC 9(8)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.
Open Mainframe Migration Checker Stable address: /tools/migration-data-check/
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
Limits
- 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
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.Job log reader
Paste a whole job log and see the first failure, a timeline by step and every code found, with links to this site's code pages.
Open Job log reader Stable address: /tools/job-log-reader/
What it checks
- ConfirmedFinds message IDs, abends (ABEND=, SYSTEM and USER COMPLETION CODE), SQLCODE values and COND CODE or job RC values by the way they are written in the text you pasted, with line numbers.
- ConfirmedNames the first failure: the first abend, CICS abend, negative SQLCODE, MQ reason code or condition code above 0004 that is not on a line saying the step was flushed or not executed. A condition code of 0001 to 0004 is shown as a warning.
- Depends on your systemShows this site's one-line summary and a link for each abend, SQLCODE, CICS and MQ code, and for any message ID, that has a page on this site.
What it does not check
- UnsupportedEvery other message: shown exactly as pasted, marked 'No explanation on this site yet'. Nothing is guessed from the ID.
- Depends on your systemReason codes are shown as written and not explained; whether a nonzero condition code is a problem depends on how your job is built.
- UnsupportedLogs from products or layouts that do not write these forms are read only where the text matches.
Source
- Code pages on this site (src/data/codes), each with its own IBM source
Limits
- Job log text: 200,000 characters.
- The tables show the first 500 findings; the counts cover all of them.
Example
IEF142I PAYDAILY STEP010 - STEP WAS EXECUTED - COND CODE 0000
IEF450I PAYDAILY STEP020 - ABEND=S0C7 U0000 REASON=00000007What 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.
Open What is this file? Stable address: /tools/file-health/
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
Limits
- 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
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)Site search
Search by code or in plain words; results come only from this site's pages.
Open Site search Stable address: /tools/ask/
What it checks
- ConfirmedFinds the code or tool page that matches an abend, SQLCODE, CICS, MQ or security code you type.
- ConfirmedMatches plain-English descriptions against the site's own pages and their keywords.
- ConfirmedEvery answer is a link to a page on this site; nothing is generated.
What it does not check
- UnsupportedIt is not an AI: it does not write new answers, and it cannot answer questions the site's pages do not cover.
- UnsupportedCodes the site has no page for, and products other than the ones listed in the code families.
- Depends on your systemYour system's own messages and local codes.
Source
- The site's own pages. Each code page lists its IBM sources and the date it was checked.
Limits
- Search text: 200,000 characters.
Example
my job ended with 0C7 after the payroll step