MainframeKit

v0.1.3
io.github.vidyutsaha1210/mainframekit Checked 7 hours ago Published 1 month ago

Mainframe 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.

ParameterTypeDescription
jcl *stringThe 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.

ParameterTypeDescription
statements *stringDFSORT 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.

ParameterTypeDescription
code *stringThe 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.

ParameterTypeDescription
copybook *stringThe copybook source (01-level record and its fields)