I have a file which looks like this.
File1
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
000001 SANDIPXXXXXXXXXXXX02XXXXXXXXXXXXXXXXX
000002 SANDIPXXXXXXXXXXXX01XXXXXXXXXXXXXXXXX
000003 SUDHASXXXXXXXXXXXX01XXXXXXXXXXXXXXXXX
000004 TANIYAXXXXXXXXXXXX03XXXXXXXXXXXXXXXXX
000005 TANIYAXXXXXXXXXXXX03XXXXXXXXXXXXXXXXX
000006 VISHNUXXXXXXXXXXXX01XXXXXXXXXXXXXXXXX
000007 VISHNUXXXXXXXXXXXX01XXXXXXXXXXXXXXXXX
****** **************************** Bottom of Data ****************************
From this file I need to find the duplicate record and the key is from 1 of 6 char (i.e. 1-6)
And I want to check whether in the selected duplicate records the value in clos 19-20 (2 char) is same or not.
Output1
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
000004 TANIYAXXXXXXXXXXXX03XXXXXXXXXXXXXXXXX
000005 TANIYAXXXXXXXXXXXX03XXXXXXXXXXXXXXXXX
000006 VISHNUXXXXXXXXXXXX01XXXXXXXXXXXXXXXXX
000007 VISHNUXXXXXXXXXXXX01XXXXXXXXXXXXXXXXX
****** **************************** Bottom of Data ****************************
If you see, there are the occurance of sandip in the input file, but the value in 19-20 is differenct, so i dont whan this file. this file should be moved to other output file
Output2
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
000001 SANDIPXXXXXXXXXXXX02XXXXXXXXXXXXXXXXX
000002 SANDIPXXXXXXXXXXXX01XXXXXXXXXXXXXXXXX
****** **************************** Bottom of Data ****************************
Some one help me to do this process in JCL.