Previous Topic: UsageNext Topic: Examples


JCL Considerations

When you submit a MAINTAIN INDEX utility through the batch command facility, the JCL to execute the facility must include statements to define:

Note: For more information about the generic JCL used to execute the batch command facility, see the chapter for your operating system in this guide.

Work file JCL considerations for STEP mode

MAINTAIN INDEX normally runs as a single step but runs as separate steps using the "STEP step-name" syntax. When running in step mode, input files should have dispositions that state the file already exists, for example, "DISP=OLD"

Preserve output files on successful completion but not when the job fails, for example, "DISP=(NEW,CATLG,DELETE)".

See the "Intermediate Work File" table to determine which files are input and which files are output and when they are used.

The RELDCTL file is always input to every step.

The SYSPCH file is created by an IDMSDBLx step and used as input to a SORTx step. When used as input, it is defined as SYS001.

Work file record lengths:

Intermediate work files

The following tables indicate which work files are created and read by the different utility steps depending on the use of the SORTEXIT and REUSE WORKFILE options.

Step

Input

Output

MAINTAIN INDEX: NOT sortexit mode and NOT reusing workfiles

IDMSTABX

 

SYS003

SORT3

SYS003

SYS004

IDMSDBL3

SYS004

SYS005

SORT4

SYS005

SYS006

IDMSDBL4

SYS006

 

MAINTAIN INDEX: NOT sortexit mode and REUSING workfiles

IDMSTABX

 

SYS003

SORT3

SYS003

SYS004

IDMSDBL3

SYS004

SYS003

SORT4

SYS003

SYS004

IDMSDBL4

SYS004

 

MAINTAIN INDEX: SORTEXIT mode and NOT reusing workfiles

IDMSTABX

 

SYS003

SORT3/IDMSDBL3

SYS003

SYS005

SORT4/IDMSDBL4

SYS005

 

MAINTAIN INDEX: SORTEXIT mode and REUSING workfiles

IDMSTABX

 

SYS003

SORT3/IDMSDBL3

SYS003

SYS003

SORT4/IDMSDBL4

SYS003