Previous Topic: Compiling the StandardNext Topic: Printing the Standard


Using the Standard

Once Step 7 is complete, use the standard by specifying the runtime option STANDARD (TESTSTD) when you execute CA JCLCheck to perform site-dependent validation for test job JCL.

Here is an example of how you invoke the standard using EDCHEK:

----------------------------------------------------------------------- COMMAND ===> EJCK STANDARD(TESTSTD) SCROLL ==> PAGE ****************************** TOP OF DATA ***************************** 000001 //PRODJOB JOB (40100000),'USER001',USER=USER001, 000002 // MSGCLASS=X,CLASS=K 000003 //* 000004 //CAZ1RLST EXEC PGM=CAZ1RLST,PARM='A@2' 000005 //STEPLIB DD DSN=LESAN01.TEST.LOAD,DISP=SHR 000006 //STDRULE DD DISP=SHR, 000007 // DSN=CACT.DEVL.CAJ6.STANDARD 000008 //SYSOUT DD SYSOUT=* 000009 //SYSPRINT DD SYSOUT=* *************************** BOTTOM OF DATA *******************************

After using the TESTSTD standard, EDCHEK produces the following sample error message:

------------------------------------------------------------------------ COMMAND ===> SCROLL ===> PAGE ************************************ TOP OF DATA ************************ ==MSG> CAY6000 1 STATEMENT FLAGGED IN JOB "PRODJOB" MAXIMUM SEVERITY WAS 8 ==MSG> ==MSG> ==MSG> 000001 //PRODJOB JOB (40100000),'USER001',USER=USER001' ==MSG> //PRODJOB JOB (40100000),"USER001",USER=USER001' 000002 // MSGCLASS=X,CLASS=K ==MSG> // MSGCLASS=X,CLASS=K ==MSG> CAY6341 "100 -- ALL TEST JOBS MUST HAVE A JOB NAME BEGINNING WITH T" ==MSG> ==MSG> CAY6340 JOB CONTROL STANDARDS VIOLATION DETECTED ==MSG> 000003 //* 000004 //CAZ1RLST EXEC PGM=CAZ1RLST,PARM='A@2' 000005 //STEPLIB DD DSN=LESAN01.TEST.LOAD,DISP=SHR 000006 //STDRULE DD DISP=SHR 000007 // DSN=CACT.DEVL.CAJ6.STANDARD 000008 //SYSOUT DD SYSOUT=* 000009 //SYSPRINT DD SYSOUT=* ****************************** BOTTOM OF DATA *****************************

Note: All standards violations use message number CAY6341. The message number you defined (in this case, 100) is placed at the beginning of the message text.

This is a sample of an EDCHEK execution where no errors occur. In other words, the JCL conforms to the site-dependent standards.

----------------------------------------------------------------------- COMMAND ===> EJCK STANDARD(TESTSTD) SCROLL ==> PAGE ********************************** TOP OF DATA ************************* ==MSG> CAY6000 NO STATEMENTS FLAGGED IN JOB "TESTJOB" MAXIMUM SEVERITY WAS 0 ==MSG> ==MSG> ==MSG> 000001 //TESTJOB JOB (40100000),'USER001',USER=USER001, 000002 // MSGCLASS=X,CLASS=K 000003 //* 000004 //CAZ1RLST EXEC PGM=CAZ1RLST,PARM=A@2' 000005 //STEPLIB DD DSN=LESAN01.TEST.LOAD,DISP=SHR 000006 //STDRULE DD DISP=SHR 000007 // DSN=CACT.DEVL.CAJ6.STANDARD 000008 //SYSOUT DD SYSOUT=* 000009 //SYSPRINT DD SYSOUT=*