Previous Topic: KEYWORDS DD Data SetNext Topic: DD Keyword Order


EXEC Keyword Order

The JCLNeat default sequence of keyword parameters on the EXEC statement is as follows:

ACCT
ADDRSPC
COND
DPRTY
DYNAMNBR
PARM
PERFORM
RD
REGION
TIME

To override the existing order for EXEC keyword parameters, specify the desired sequence in the KEYWORDS DD data set as follows:

Column Number 1    6
              EXEC Keyword1
              EXEC Keyword2
              EXEC Keywordn

Note: Since PGM or PROC is a positional rather than a keyword parameter, it is ignored if you specify it.

The keyword sequence specified here completely overrides the default sequence provided by JCLNeat.

Keyword parameters encountered in the original JCL and not specified in this sequence are:

Examples:

Sample Keywords DD data set as input by user:

DD DSNAME
DD DISP
DD UNIT
DD VOLUME
DD SPACE
DD DCB

Sample DD statement prior to reformatting:

IN //DD1    DD  DSN=SAMPLE.DSN,DISP=(NEW,KEEP),
IN //       VOL=SER=DISK01,UNIT=SYSDA,
IN //       DCB=BLKSIZE=8800,
IN //       SPACE=(CYL,(5,1))

Sample DD statement after reformatting using the JCLNeat default keyword sequence:

OUT //DD1   DD DCB=BLKSIZE=8800,
OUT //         DISP=(NEW,KEEP),
OUT //         DSN=SAMPLE.DSN,
OUT //         SPACE=(CYL,(5,1)),
OUT //         UNIT=SYSDA,
OUT //         VOL=SER=DISK01

Sample DD statement after reformatting using the overriding DD keyword order as specified previously:

OUT //DD1   DD DSN=SAMPLE.DSN,
OUT //         DISP=(NEW,KEEP),
OUT //         UNIT=SYSDA,
OUT //         VOL=SER=DISK01,
OUT //         SPACE=(CYL,(5,1)),
OUT //         DCB=BLKSIZE=8800