Hi All,
Good evening.
I have 3 records with same values in file and I want to pick last record in the file. Setting the sequence num is one way, is there any other way to do this. Please suggest
Records in file are like below
05 3333 1604 N
05 3333 1604 Y
05 3333 1604
I am sorting based on only first 3 fields .
Regards,
kk
//TESTRUN EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
05 3333 1604 N
05 3333 1604 Y
05 3333 1604
/*
//OUT DD SYSOUT=*
//TOOLIN DD *
SUBSET FROM(IN) TO(OUT) KEEP OUTPUT LAST USING(CTL1)
/*
//CTL1CNTL DD *
SORT FIELDS=(1,3,CH,A)
/*