Initializing secondary indexes

You can use IMS Index Builder to initialize the primary index, one or more secondary indexes, and the ILDS by using an empty or dummy DFSURIDX file as input.

About this task

When you use an empty or dummy DFSURIDX file as input, the load is skipped and all data sets will be initialized and marked ready for update processing. Note that IMS Index Builder will automatically initialize the indexes if the result of rebuilding is an empty data set.

For ILDSs, you can use the control statement ILDS INITONLY. See ILDS control statement.

Procedure

To initialize secondary indexes, use an empty or dummy DFSURIDX file as input, and define the JCL by using the following example:
Figure 1. Example JCL for initializing data sets
//IIUBBLD  JOB &SYSUID,MSGCLASS=H,REGION=33M,TIME=1339,
//             RESTART=*,CLASS=A,NOTIFY=&SYSUID
//*********************************************************************
//*  INITIALIZING INDEX DATA SETS WITH IMS IB V3 R1          IIUSMP05 *
//*********************************************************************
//* Provide values for the following variables:
// SET SIIULMOD=                          Index Builder load library
// SET SHKTLOAD=                          ITKB load library
// SET   RESLIB=                          IMS RESLIB
// SET   MDALIB=                          IMS MDALIB
// SET   DBDLIB=                          DBD library
// SET   RECON1=                          Recon1 data set name
// SET   RECON2=                          Recon2 data set name
// SET   RECON3=                          Recon3 data set name
//* NOTE: The Index Builder load library and all other datasets
//*       concatenated to STEPLIB must be APF authorized.
//*********************************************************************
//IIUBSCN  EXEC PGM=IIUSTART
//STEPLIB  DD  DISP=SHR,DSN=&SIIULMOD
//         DD  DISP=SHR,DSN=&SHKTLOAD
//         DD  DISP=SHR,DSN=&RESLIB
//         DD  DISP=SHR,DSN=&MDALIB
//IMS      DD  DISP=SHR,DSN=&DBDLIB
//RECON1   DD  DISP=SHR,DSN=&RECON1
//RECON2   DD  DISP=SHR,DSN=&RECON2
//RECON3   DD  DISP=SHR,DSN=&RECON3
//IIUPRINT DD  SYSOUT=*
//IIUCAPT  DD  SYSOUT=*
//IIUSNAP  DD  SYSOUT=*
//IIUSOUT  DD  SYSOUT=*
//IIUIN    DD  *
  PROC     BLD_ALL,TESTDBH1
  INPUT    DFSURIDX,DBRC=N
/*
//DFSURIDX DD  DUMMY
//