I have below job that copies every first duplicate record to o/p file.
//SORT0001 EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//SSMSG DD SYSOUT=*
//SORTI DD *
ABCD1
ABCD2
BCDE1
BCDE2
CDEF1
CDEF2
//SORTO DD SYSOUT=*
//TOOLIN DD *
SELECT FROM(SORTI) TO(SORTO) ON(1,4,CH) FIRSTDUP
/*
//TOOLMSG DD SYSOUT=*
//SSMSG DD SYSOUT=*
//SORTI DD *
ABCD1
ABCD2
BCDE1
BCDE2
CDEF1
CDEF2
//SORTO DD SYSOUT=*
//TOOLIN DD *
SELECT FROM(SORTI) TO(SORTO) ON(1,4,CH) FIRSTDUP
/*
What is the equivalent job for the above without using SYNCTOOL / ICETOOL utility?
Thanks.