//copyproc PROC
//Step EXEC PGM=SORT
//Sortin dd dsn=&dataset1,disp=shr
//sortout dd dsn=&dataset2,d
// Disp=(new.catlg,delete)
// .........................
// .........................
//Sysin dd *
OPTION=COPY
// PEND
//*
//*
//copstep exec copyproc,dataset1=AAA.BBB.CCCC1,dataset2=DDD.EEE.FFF1
//copstep exec copyproc,dataset1=AAA.BBB.CCCC2,dataset2=DDD.EEE.FFF2
//copstep exec copyproc,dataset1=AAA.BBB.CCCC3,dataset2=DDD.EEE.FFF3
//copstep exec copyproc,dataset1=AAA.BBB.CCCC4,dataset2=DDD.EEE.FFF4
While executing this job,
if third dataset (DDD.EEE.FFF3) is already exists, this is showing JCL error saying "file already exists".
I am submitting this job through Internal reader, So, if an output dataset exists already, all the process is stopped. Is there a way to avoid this problem for smooth running of my job?????????????