Here is the JCL
//EXTPROC PROC
//STEP1 EXEC PGM=IEFBR14
//SQADB512 DD DSN=&DSNAME,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,3,1)),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PO)
//STEP2 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=&SRCTPE <= INPUT TAPE
//SYSUT2 DD DISP=(NEW,CATLG),UNIT=TAPE,DSN=TSSDN.DATA.COPY3
//STEP3 EXEC PGM=IDCAMS,REGION=512K
// SPACE=(TRK,(5,3,1)),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PO)
//STEP2 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=&SRCTPE <= INPUT TAPE
//SYSUT2 DD DISP=(NEW,CATLG),UNIT=TAPE,DSN=TSSDN.DATA.COPY3
//STEP3 EXEC PGM=IDCAMS,REGION=512K
//SYSPRINT DD SYSOUT=*
//STEP4 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//INDDX DD DISP=OLD,DSN=&SRCTPE <=INPUT VIRTUAL TAPE
//OUTDDX DD DSN=TSSDN.GDBD.TEMP02(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(5,4,66),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000,DSORG=PO)
//SYSUT3 DD UNIT=SYSDA,SPACE=(CYL,1)
//SYSUT4 DD UNIT=SYSDA,SPACE=(CYL,1)
//STEP5 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
// PEND
//FINAL EXEC EXTPROC,DSNAME=TSSDN.DEMO.TEMP02,SRCTPE=TSSDN.DATA.COPY2
//STEP2.SYSIN DD *
//STEP3.SYSIN DD *
DEFINE GDG( -
NAME(TSSDN.GDBD.TEMP02)-
LIMIT(7) NOEMPTY SCRATCH)
//STEP4.SYSIN DD *
COPY INDD=INDDX,OUTDD=OUTDDX
//STEP5.SYSIN DD *
DELETE (TSSDN.EMPLOYEE.MASTER) CLUSTER PURGE
IF MAXCC=8 THEN
SET MAXCC=0
DEFINE CLUSTER( -
NAME(TSSDN.EMPLOYEE.MASTER) -
FREESPACE(10 10) -
INDEXED -
KEYS(30 0) -
RECORDSIZE(80 80) -
SHAREOPTIONS(3 3) -
ERASE -
UNIQUE -
STORCLAS(NULL) -
VOLUMES(IMS60X) -
CYLINDERS(40 10) -
) -
DATA( -
NAME(TSSDN.EMPLOYEE.MASTER.DATA) -
CONTROLINTERVALSIZE(8192) -
) -
INDEX( -
NAME(TSSDN.EMPLOYEE.MASTER.INDEX) -
CONTROLINTERVALSIZE(8192))
/*
Here is the message SDSF OUT PUT
SYSPRINT FINAL STEP5
IDCAMS SYSTEM SERVICES TIME:
DELETE (TSSDN.EMPLOYEE.MASTER) CLUSTER PURGE
IDC3012I ENTRY TSSDN.EMPLOYEE.MASTER NOT FOUND
IDC3009I ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLA3-42
IDC0551I ** ENTRY TSSDN.EMPLOYEE.MASTER NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8
IF MAXCC=8 THEN
SET MAXCC=0
DEFINE CLUSTER( -
NAME(TSSDN.EMPLOYEE.MASTER) -
FREESPACE(10 10) -
INDEXED -
KEYS(30 0) -
RECORDSIZE(80 80) -
SHAREOPTIONS(3 3) -
ERASE -
UNIQUE -
STORCLAS(NULL) -
VOLUMES(IMS60X) -
CYLINDERS(40 10) -
) -
DATA( -
NAME(TSSDN.EMPLOYEE.MASTER.DATA) -
CONTROLINTERVALSIZE(8192) -
) -
INDEX( -
NAME(TSSDN.EMPLOYEE.MASTER.INDEX) -
CONTROLINTERVALSIZE(8192))
IDC0508I DATA ALLOCATION STATUS FOR VOLUME SN1214 IS 0
IDC0509I INDEX ALLOCATION STATUS FOR VOLUME SN1214 IS 0
IDC0181I STORAGECLASS USED IS BASIC
IDC0181I MANAGEMENTCLASS USED IS BASIC
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
NAME(TSSDN.EMPLOYEE.MASTER.INDEX) -
CONTROLINTERVALSIZE(8192))
IDC0508I DATA ALLOCATION STATUS FOR VOLUME SN1214 IS 0
IDC0509I INDEX ALLOCATION STATUS FOR VOLUME SN1214 IS 0
IDC0181I STORAGECLASS USED IS BASIC
IDC0181I MANAGEMENTCLASS USED IS BASIC
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0