Previous Topic: UsageNext Topic: Sample Output


The Steps of MAINTAIN ASF

MAINTAIN ASF consists of the following steps which you can run separately or as a single operation:

Step

Description

IDMSTABX

 

  • Interprets the control statements
  • Reads the database
  • Writes index descriptors to the SYS003 file
  • Writes sort control parameters to the SYSPCH file

SORT3

Sorts the contents of the SYS003 file and puts the results in SYS004.

IDMSDBL3

 

  • Erases old index structures, if there are any
  • Builds the new index structures
  • Establishes pointers for user-owned index sets, and puts themin the SYS005 file

SORT4

Sorts the contents of the SYS005 file, and puts the results in SYS006.

IDMSDBL4

Fills in prefix pointers for user-owned indexes

Each Step has Input and Output

This table describes the input and output files if MAINTAIN ASF is executed without the SORTEXIT and REUSE options. The effect of those options is shown under "JCL" later in this chapter.

Step

Input

Output

IDMSTABX

 

  • Control parameters from your submission of the utility
  • The database

 

  • SYS003 contains index membership information
  • SYSPCH contains sort parameters

SORT3

 

  • SYS003 from IDMSTABX
  • SYS002 contains the sort parameters from IDMSTABX

SYS004 contains the sorted contents of SYS003

IDMSDBL3

SYS004 from SORT3

 

  • SYS005 contains prefix pointer information for user-ownedindexes
  • SYSPCH contains sort parameters

SORT4

 

  • SYS005 from IDMSDBL3
  • SYS002 contains the sort parameters from IDMSDBL3

SYS006 contains the sorted contents of SYS005

IDMSDBL4

SYS006 from SORT4

SYSLST contains a summary of the results of the MAINTAIN ASF operation

Sort Output after Each Step

If you run MAINTAIN ASF a step at a time, you must use the sort parameters to sort the contents of the intermediate work files. You can use your own sort program or IDMSSORT.

Sort the intermediate work files as follows:

Sort name

File to sort

Sort order

Sort on

Begins at

SORT3

SYS003

Ascending

36 bytes

Byte 5

SORT4

SYS005

Ascending

28 bytes

Byte 5

z/VSE users: The sort parameters generated by IDMSTABX and IDMSDBL3 are not sufficient for stand alone sort programs running under z/VSE. If you want to use your own sort program, you must add "WORK=" parameters to specify more than one sort work file.