MainframeMaster

JCL checker

Paste a JCL job to check its JOB, EXEC, and DD statements. The checker looks for layout errors, invalid names, unknown keywords, and bad values in COND, DISP, SPACE, DSN, and DCB. Each statement also gets a plain-English explanation.

How to use it

  1. Paste the job into the box, or load one of the samples.
  2. Read the statement list. Each entry shows its line numbers, an explanation, and any problems found.
  3. Follow the link on a problem to the tutorial that covers it.

Runs in your browser. Nothing is uploaded.

JCL checker

No errors or warnings found in 6 statements.
Line 1JOBPAYROLL1
//PAYROLL1 JOB (ACCT),'DAILY PAYROLL',CLASS=A,MSGCLASS=X

Starts job PAYROLL1, class A, message class X.

Line 3EXECSTEP010
//STEP010  EXEC PGM=SORT

Runs program SORT as step STEP010.

Line 4DDSORTIN
//SORTIN   DD DISP=SHR,DSN=PROD.PAYROLL.INPUT

Defines SORTIN for data set PROD.PAYROLL.INPUT, with disposition SHR.

Lines 5 to 7DDSORTOUT
//SORTOUT  DD DISP=(NEW,CATLG,DELETE),DSN=PROD.PAYROLL.SORTED,         X
//            SPACE=(CYL,(5,1),RLSE),UNIT=SYSDA,                       X
//            DCB=(RECFM=FB,LRECL=80,BLKSIZE=6000)

Defines SORTOUT for data set PROD.PAYROLL.SORTED, with disposition (NEW,CATLG,DELETE).

Line 8DDSYSOUT
//SYSOUT   DD SYSOUT=*

Sends SYSOUT to SYSOUT, using the job message class.

Line 9DDSYSIN
//SYSIN    DD *

Defines SYSIN as instream data. Lines up to the next /* are read as data.

Instream data: 1 line.

Need this at work?

Free account saves tutorial progress. The jobs board lists openings that ask for JCL.

JCL jobs on the board

What the checker tests

  • Layout: // in columns 1 and 2, no tab characters, lines no longer than 80 characters, and continuation marks in column 72.
  • Names: job, step, and DD names use 1 to 8 characters and start with a letter, @, #, or $. Duplicate step and DD names are reported.
  • Operations: each statement must be a known operation. A DD must follow an EXEC in the same job.
  • Parameters: COND codes and operators, DISP values, SPACE units and quantities, data set name qualifiers, and DCB record format, LRECL, and BLKSIZE.
  • Instream data: the lines after DD * or DD DATA must end with /*.

What the checker does not test

The checker reads text only. It does not connect to z/OS, so it cannot confirm that a data set exists, that a program or procedure is installed, or that a user has access. It does not evaluate IF and ELSE tests, expand procedures, or resolve symbolic parameters such as &HLQ. Use the result as a first pass, then check the job log after the run.

Column positions and references

The JCL coding sheet shows where each field starts and ends. The DD statement tutorial covers the operands that the checker reads most often. For a parameter the checker does not cover, use the IBM JCL reference for your z/OS release.

Explain it like I'm 5

A JCL job is a list of instructions for the mainframe, written one card at a time. The checker reads the cards in order. It makes sure each card starts in the right place, has a name where one is needed, and uses words the mainframe understands. Then it describes each card in plain words, so you can see what the job asks the mainframe to do.

FAQ

Related Pages

More detail

Each statement has its own tutorial. The COND parameter page explains return code tests, and the DISP page lists every status and disposition. Other calculators and checkers are on /tools.