I have a file (RECFM=FB, LRECL=20) with records that look like the following:
AAAAAAAA 10012345678
BBBBBBBB 23131839048
CCCCCCCC 10012345678
DDDDDDDD 51111111111
EEEEEEEE 31111111111
FFFFFFFF 10012345678
GGGGGGGG 5111111111
HHHHHHHH 10012345678
BBBBBBBB 23131839048
CCCCCCCC 10012345678
DDDDDDDD 51111111111
EEEEEEEE 31111111111
FFFFFFFF 10012345678
GGGGGGGG 5111111111
HHHHHHHH 10012345678
The first 8 bytes is unique, however the data that follows may or may not be unique.
I would like to identify the duplicate values that occur past the first 8 bytes i.e. in bytes 9 through to 20 and report on them.
So, in the above instance, the report should look like:
AAAAAAAA 10012345678
CCCCCCCC
FFFFFFFF
HHHHHHHH
BBBBBBBB 23131839048
DDDDDDDD 51111111111
GGGGGGGG
EEEEEEEE 31111111111
CCCCCCCC
FFFFFFFF
HHHHHHHH
BBBBBBBB 23131839048
DDDDDDDD 51111111111
GGGGGGGG
EEEEEEEE 31111111111
I'm sure that must be a way to do this using DFSORT and I would appreciate your assistance with this.
Many thanks.