I'm facing quite a peculiar situation. Please let me know what other information you need to help me figure out this problem.
There are these 3 datasets, ( HLQ changed throughout the post )
ABCDE.JHH.DUMP.PROD
ABCDE.JDH.DUMP.PROD
ABCDE.JHS.DUMP.PROD
First step of job deletes these dsn via IEFBR14 with disp=mod,delete,delete. These 3 datasets were created by the same job with disp=new,catlg,catlg in the second step. The job failed on E37 on the second step. When I reran job, first step ran OK ( meaning, the datasets were deleted ) but 2nd step failed because “duplicate dsn on Vols TST001, TST002, TST003 for ABCDE.JDH.DUMP.PROD. I deleted dsn via idcams and reran; it went fine.
//STEP1 EXEC PGM=IEFBR14
//OUTFILE1 DD DSN=ABCDE.JHH.DUMP.PROD,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(TRK,(1,0)),
// UNIT=DISK
//OUTFILE2 DD DSN=ABCDE.JDH.DUMP.PROD,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(TRK,(1,0)),
// UNIT=DISK
//OUTFILE3 DD DSN=ABCDE.JHS.DUMP.PROD,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(TRK,(1,0)),
// UNIT=DISK
//OUTFILE1 DD DSN=ABCDE.JHH.DUMP.PROD,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(TRK,(1,0)),
// UNIT=DISK
//OUTFILE2 DD DSN=ABCDE.JDH.DUMP.PROD,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(TRK,(1,0)),
// UNIT=DISK
//OUTFILE3 DD DSN=ABCDE.JHS.DUMP.PROD,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(TRK,(1,0)),
// UNIT=DISK
Step 2 uses CA-Easytrieve Plus and here's the info for the above-mentioned file creation.
//OUTFILE1 DD DSN=ABCDE.JHH.DUMP.PROD,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(23300,(100,100),RLSE),
// DCB=(RECFM=FB,LRECL=233,BLKSIZE=23300)
//OUTFILE2 DD DSN=ABCDE.JDH.DUMP.PROD,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(12680,(100,100),RLSE),
// DCB=(RECFM=FB,LRECL=634,BLKSIZE=12680)
//OUTFILE3 DD DSN=ABCDE.JHS.DUMP.PROD,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(26700,(100,100),RLSE),
// DCB=(RECFM=FB,LRECL=89,BLKSIZE=26700)
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(23300,(100,100),RLSE),
// DCB=(RECFM=FB,LRECL=233,BLKSIZE=23300)
//OUTFILE2 DD DSN=ABCDE.JDH.DUMP.PROD,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(12680,(100,100),RLSE),
// DCB=(RECFM=FB,LRECL=634,BLKSIZE=12680)
//OUTFILE3 DD DSN=ABCDE.JHS.DUMP.PROD,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(26700,(100,100),RLSE),
// DCB=(RECFM=FB,LRECL=89,BLKSIZE=26700)
How does the dataset exist, if the first step is meant for deleting them, and after the deletion step went fine.
Regards
v1gnesh