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.
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)":
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,
Note: Keywords that are not in the KEYWORDS DD will be in alphabetical keyword order after the reordered keywords
-CA JCLCheck Workload Automation Command Reference Guide - chapter 5: Using JCLNEAT