Use of CA JCLCheck Workload Automation JCLNEAT "Keyword Reordering".

Document ID : KB000022917
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:

The JCLNEAT feature of CA JCLCheck WA can format the JCL in keyword order. This Knowledge Document describes how to use the JCLNEAT "keyword reordering" option.

 

Instructions: 

 

The JOB statement keyword order can be altered by applying usermod MZnn015 (where nn is the release level, ie. C0 for r12.0) from the CAZ2JCL library. This usermod updates CSECT CAZ1NCJB in the CAZ2OPTN library.

The EXEC and DD statements keyword order can be altered by using the KEYWORDS data Set. The KEYWORDS data set can be a sequential file or a PDS member with LRECL of 80. The KEYWORDS DD statement must be added to the JCLCNEAT job as follows:
//KEYWORDS DD DSN=jclneat.keywords.lib(keymem),DISP=SHR

Below is a sample contents of "jclneat.keywords.lib(keymem)":

EXEC PARM
EXEC REGION
DD DSNAME
DD DISP
DD UNIT
DD DCB
DD SPACE
DCB RECFM
DCB BLKSIZE
DCB LRECL

New JCL format for the EXEC statement:

 
//     EXEC   MYPROG,PARM='TEST',REGION=0M

New JCL format for the DD statement :

 
//DD1    DD DSN=MY.DSN.DATA,
//          DISP=(,CATLG),
//          UNIT=3390, 
//          DCB=(RECFM=FB,BLKSIZE=8000,LRECL=80),
//          SPACE=(CYL,(5,1)),
//          VOL=SER=VOL001

Note: Keywords that are not in the KEYWORDS DD will be in alphabetical keyword order after the reordered keywords

Additional Readings:
-CA JCLCheck Workload Automation Command Reference Guide - chapter 5: Using JCLNEAT