We have a job at our site, which refreshes the MQT, once the MQTs are refreshed, Copy tablespace job runs. Find below the JCL. But job errors with RC 8 and the error message is as quoted below. There is IEFBR14 step in the job which deletes the previous run file, but still this error is coming up.
Can any one clarify why this might happen and suggest a corrective action.
Error Message:
DSNUGUTC - OUTPUT START FOR UTILITY, UTILID = BMCSTATS
DSNUGTIS - PROCESSING SYSIN AS EBCDIC
DSNUGUTC - COPY TABLESPACE MMDBTPRF.MMQSTPR1 COPYDDN(C001)
DSNUBCKB - DATA SET ALREADY USED FOR PREVIOUS IMAGE COPY
//*---------------------------------------------------------------------
//* DELETE PREVIOUS RUN FILES
//*---------------------------------------------------------------------
//DELETE01 EXEC PGM=IEFBR14
//OUT01 DD DSN=DSR.TEMP.DS0R.MMQSTPR1.#130412.C001,
// DISP=(MOD,DELETE,DELETE)
//OUT02 DD DSN=DSR.TEMP.DS0R.MMQSTPR2.#130412.C002,
// DISP=(MOD,DELETE,DELETE)
//OUT03 DD DSN=DSR.TEMP.DS0R.MMQSTPR3.#130412.C003,
// DISP=(MOD,DELETE,DELETE)
//*---------------------------------------------------------------------
//* COPY INDEX FOR THE TABLES.
//*---------------------------------------------------------------------
//COPYIND EXEC PGM=DSNUTILB,PARM=(DS1R,'BMCSTATS'),
// REGION=0M,MEMLIMIT=NOLIMIT
//STEPLIB DD DSN=DSNVS.PROD.BMC.DS0R.BMCLOAD,DISP=SHR
// DD DSN=DSNVS.PROD.DS0R.SDSNEXIT,DISP=SHR
// DD DSN=DSNVS.PROD.DS0R.SDSNLOAD,DISP=SHR
//SYSEXEC DD DSN=DSNVS.PROD.BMC.DS0R.BMCREXX,DISP=SHR
//ABNLIGNR DD DUMMY
//DSSPRINT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//UTPRINT DD SYSOUT=*
//RNPRIN01 DD SYSOUT=*
//STPRIN01 DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
COPY
TABLESPACE MMDBTPRF.MMQSTPR1
COPYDDN(C001)
COPY
TABLESPACE MMDBTPRF.MMQSTPR2
COPYDDN(C002)
COPY
TABLESPACE MMDBTPRF.MMQSTPR3
COPYDDN(C003)
//*
//C001 DD DSN=DSR.TEMP.DS0R.MMQSTPR1.#130412.C001,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(CYL,(428,32),RLSE),
// UNIT=SYSDA
//C002 DD DSN=DSR.TEMP.DS0R.MMQSTPR2.#130412.C002,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(CYL,(568,92),RLSE),
// UNIT=SYSDA
//C003 DD DSN=DSR.TEMP.DS0R.MMQSTPR3.#130412.C003,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(CYL,(584,96),RLSE),
// UNIT=SYSDA
//*--------------------------------------------------------------------
//* END OF JOB
//*--------------------------------------------------------------------
//* DELETE PREVIOUS RUN FILES
//*---------------------------------------------------------------------
//DELETE01 EXEC PGM=IEFBR14
//OUT01 DD DSN=DSR.TEMP.DS0R.MMQSTPR1.#130412.C001,
// DISP=(MOD,DELETE,DELETE)
//OUT02 DD DSN=DSR.TEMP.DS0R.MMQSTPR2.#130412.C002,
// DISP=(MOD,DELETE,DELETE)
//OUT03 DD DSN=DSR.TEMP.DS0R.MMQSTPR3.#130412.C003,
// DISP=(MOD,DELETE,DELETE)
//*---------------------------------------------------------------------
//* COPY INDEX FOR THE TABLES.
//*---------------------------------------------------------------------
//COPYIND EXEC PGM=DSNUTILB,PARM=(DS1R,'BMCSTATS'),
// REGION=0M,MEMLIMIT=NOLIMIT
//STEPLIB DD DSN=DSNVS.PROD.BMC.DS0R.BMCLOAD,DISP=SHR
// DD DSN=DSNVS.PROD.DS0R.SDSNEXIT,DISP=SHR
// DD DSN=DSNVS.PROD.DS0R.SDSNLOAD,DISP=SHR
//SYSEXEC DD DSN=DSNVS.PROD.BMC.DS0R.BMCREXX,DISP=SHR
//ABNLIGNR DD DUMMY
//DSSPRINT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//UTPRINT DD SYSOUT=*
//RNPRIN01 DD SYSOUT=*
//STPRIN01 DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
COPY
TABLESPACE MMDBTPRF.MMQSTPR1
COPYDDN(C001)
COPY
TABLESPACE MMDBTPRF.MMQSTPR2
COPYDDN(C002)
COPY
TABLESPACE MMDBTPRF.MMQSTPR3
COPYDDN(C003)
//*
//C001 DD DSN=DSR.TEMP.DS0R.MMQSTPR1.#130412.C001,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(CYL,(428,32),RLSE),
// UNIT=SYSDA
//C002 DD DSN=DSR.TEMP.DS0R.MMQSTPR2.#130412.C002,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(CYL,(568,92),RLSE),
// UNIT=SYSDA
//C003 DD DSN=DSR.TEMP.DS0R.MMQSTPR3.#130412.C003,
// DISP=(NEW,CATLG,CATLG),
// SPACE=(CYL,(584,96),RLSE),
// UNIT=SYSDA
//*--------------------------------------------------------------------
//* END OF JOB
//*--------------------------------------------------------------------