PHIDAM HALDB partition primary indexes are rebuilt the
same way a HIDAM index is built for all partitions or for selected
partitions.
About this task
The DATAOUT DD statement is not applicable for HALDB, alternate
primary indexes cannot be built. Sequential scan is performed by partition,
and the primary indexes are loaded as soon as the partition scan completes.
Procedure
To build a PHIDAM partition primary index, define the JCL,
using the following example:
Figure 1. Building a PHIDAM partition primary index
//IIUBBLD JOB &SYSUID,MSGCLASS=H,REGION=233M,TIME=1339,
// RESTART=*,CLASS=A,NOTIFY=&SYSUID
//*********************************************************************
//* Building PHIDAM Partition Primary Indexes *
//* with IMS IB V3 R1 IIUSMP08 *
//*********************************************************************
//* 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_PRIMARY,TESTDBH1
INPUT IBSCAN,DBRC=Y
PARTNAME BH1PTNA BH1PTND
/*
//