Alissa, I have changed it because it was suggested for DFSORT and we run for SYNCSORT.
Our SYNCSORT version is "SYNCSORT FOR Z/OS 1.2.2.1R"
The changed job:
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=MY.INPUT.FILE.NAME,DISP=SHR
//OUT1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(,PASS)
//OUT2 DD DSN=&&T2,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=(,PASS)
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=OUT1,
INCLUDE COND=(1,2,CH,EQ,C'02',AND,55,6,CH,EQ,C'123456'),
OVERLAY=(81:C'BB')
OUTFIL FNAMES=OUT2,OVERLAY=(81:C'VV')
/*
//S2 EXEC PGM=SORT
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//CON DD DSN=&&T1,DISP=(OLD,PASS)
// DD DSN=&&T2,DISP=(OLD,PASS)
//OUT DD DSN=MY.OUTPUT.FILE.NAME,DISP=SHR
//TOOLIN DD *
SPLICE FROM(CON) TO(OUT) ON(6,6,CH) -
WITHALL WITH(1,81) USING(CTL1)
/*
//CTL1CNTL DD *
OUTFIL FNAMES=OUT,INCLUDE COND=(81,2,CH,EQ,C'VB'),
BUILD=(1,80)
/*
Did i do something wrong?
Thanks.