MainframeKit
v0.1.3Mainframe help, no mainframe needed: check JCL and DFSORT, explain abends, lay out copybooks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_jcl Check JCL
Check z/OS JCL for common mistakes (columns, continuations, DISP, SPACE, DCB, names, PARM length) and explain every JOB, EXEC and DD statement in plain English. Use before submitting or suggesting JCL.
| Parameter | Type | Description |
|---|---|---|
jcl * | string | The JCL, one card per line |
explain_dfsort Explain DFSORT statements
Explain DFSORT / ICETOOL-style control statements (SORT, MERGE, INCLUDE/OMIT COND, INREC/OUTREC BUILD, SUM) in plain English and flag problems.
| Parameter | Type | Description |
|---|---|---|
statements * | string | DFSORT control statements, as in SYSIN |
lookup_code Look up a mainframe error code
Explain a z/OS abend (S0C7, SB37, U4038…), Db2 SQLCODE (-805, -911…), CICS abend or RESP code (ASRA, AEY9, NOTFND…) or IBM MQ reason code (2035, 2085…): meaning, causes, fixes, IBM sources and links.
| Parameter | Type | Description |
|---|---|---|
code * | string | The code, e.g. S0C7, 0C4, -805, SQL0805N, ASRA, 2035 |
copybook_layout COBOL copybook layout
Lay out a COBOL copybook: every field's start position (1-based), length and storage type (packed, binary, zoned, text), and the record length. Handles PIC, USAGE, OCCURS, REDEFINES.
| Parameter | Type | Description |
|---|---|---|
copybook * | string | The copybook source (01-level record and its fields) |