chikdu Beginner
Joined: 06 Jul 2005 Posts: 29 Topics: 20
|
Posted: Mon Feb 05, 2007 11:49 pm Post subject: Remove duplicate records |
|
|
Hello,
There is a VSAM file which has lacs of duplicate records.
My requirement is to eliminate the duplicate records
The file layout is as shown.
Code: |
10770497993907020061027026185199420 RECD AB P1234512 FRM WISCONSIN DMV
10770497993907020061027026185299420 25.00 FOR REFUND,GAVE AB TO DEONE DE
10770497993907020061027026185399420 O ADD TO PRINCIPLE BAL
10770497993907020061030024312999420 RECD AB P1234512 FRM WISCONSIN DMV
10770497993907020061030024313099420 25.00 FOR REFUND,GAVE AB TO DEONE DE
10770497993907020061030024313199420 O ADD TO PRINCIPLE BAL
10770497993907020061031024295399420 RECD AB P1234512 FRM WISCONSIN DMV
10770497993907020061031024295499420 25.00 FOR REFUND,GAVE AB TO DEONE DE
10770497993907020061031024295599420 O ADD TO PRINCIPLE BAL
10770497993907020061101024314699420 RECD AB P1234512 FRM WISCONSIN DMV
10770497993907020061101024314799420 25.00 FOR REFUND,GAVE AB TO DEONE DE
10770497993907020061101024314899420 O ADD TO PRINCIPLE BAL
|
I need to retain only the first occurance of this record in my file.
That is record
Code: |
10770497993907020061027026185199420 RECD AB P1234512 FRM WISCONSIN DMV
10770497993907020061027026185299420 25.00 FOR REFUND,GAVE AB TO DEONE DE
10770497993907020061027026185399420 O ADD TO PRINCIPLE BAL
|
There are several other duplicate records as this.
All these records which have duplicates have 79939070 in position 8-15.
There are non duplicate records also which have 79939070 in position 8-15.
I was going through the post
http://www.mvsforums.com/helpboards/viewtopic.php?t=6725
But this doesnt seem to work for my requirement.
Can anyone please help me on this?
Thanking you in advace,
Chikdu |
|