I have a file layout has mentioned below:
00PLN FROZEN YHN
0509215447
1009215486 0000001.00 20091103000000 20091103235900
1509215486 PALLET 3315401 092 002
2000263281851000100
1009215487 0000001.00 20091103000000 20091103235900
1509215487 PALLET 3458900 092 007
2000425928159000315
1009215488 0000001.00 20091103000000 20091103235900
1509215488 PALLET 6241000 092 016
2001020126183000099
2001283319273000297
2001354662366000108
2001436381561000140
2001446381578000140
2001466386901000098
I want to remove the duplicates I used below JCL but i am not able to delete the duplicate record, so could somebody help me on this:
//SORT0Q EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=userid.test.cntl,DISP=OLD
//SORTOUT DD DSN=&&SORT0Q,
// DISP=(,PASS,DELETE),
// SPACE=(CYL,(4,1)),UNIT=TEMP
//SYSIN DD *
SORT FIELDS=COPY
SUM FIELDS=NONE
/*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=userid.test.cntl,DISP=OLD
//SORTOUT DD DSN=&&SORT0Q,
// DISP=(,PASS,DELETE),
// SPACE=(CYL,(4,1)),UNIT=TEMP
//SYSIN DD *
SORT FIELDS=COPY
SUM FIELDS=NONE
/*