Sample HPCADRIV procedure

The JCL in the procedure shown in the following example is essentially the same JCL as that created by the GEN command.

The difference is that the GEN command creates an IMS HP Change Accumulation Utility job that is submitted by the RUN command, and the BAT command creates an IMS HP Change Accumulation Utility job that is submitted as part of your job stream.

The job that is created by the BAT command invokes IMS HP Change Accumulation Utility as a procedure. Using this indirect method enables you to maintain your batch job stream without making daily changes.

However, input to the DBRC utility program for GENJCL does require change. Each time the GENJCL input changes, a new batch procedure is created by Step 1.

Figure 1. Sample HPCADRIV procedure
//IEFPROC EXEC PGM=HPCADRIV,REGION=&RGN,
// PARM='&PARM1'
//*
//STEPLIB DD DISP=SHR,
        DSN=IMSVS.I81STS27.CRESLIB
//RECON1 DD DISP=SHR,
       DSN=HPCA.IMS.RECON1
//RECON2 DD DISP=SHR,
       DSN=HPCA.IMS.RECON2
//HPCACTL DD DISP=SHR,
//     DSN=VNDR400.CONTROL(HPCA#CTL)
//HPCMSG00 DD SYSOUT=&SOUT
//SYSSNAP DD SYSOUT=&SOUT
//SYSPRINT DD SYSOUT=&SOUT
//SYSOUT DD SYSOUT=&SOUT
//SYSUDUMP DD SYSOUT=&SOUT