How to use the JCLNeat "Keyword Reordering" feature
search cancel

How to use the JCLNeat "Keyword Reordering" feature

book

Article ID: 22917

calendar_today

Updated On:

Products

JCLCheck Workload Automation

Issue/Introduction

The JCLNeat feature of JCLCheck can format the JCL in keyword order. This Knowledge Document demonstrates how to use the "keyword reordering" option.

 

 

Environment

Release: 12.0
Component: JCLCheck Workload Automation

Resolution

- The JOB statement keywords can be reordered  by applying usermod MZ1C015 from the CAZ2JCL library. This usermod updates CSECT CAZ1NCJB in the CAZ2OPTN library.

- The EXEC and DD statements keywords can be reordered 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 JCLNeat job as follows:

//KEYWORDS DD DSN=jclneat.keywords.lib(keymem),DISP=SHR

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

The newly formatted EXEC statement after running JCLNeat: 

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

The newly formatted DD statement after running JCLNeat: 

//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 included in the KEYWORDS DD will be in alphabetical order after the reordered keywords.