MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Remove duplicate records

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
chikdu
Beginner


Joined: 06 Jul 2005
Posts: 29
Topics: 20

PostPosted: Mon Feb 05, 2007 11:49 pm    Post subject: Remove duplicate records Reply with quote

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
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Feb 06, 2007 12:01 am    Post subject: Reply with quote

chikdu,

Please search before posting. Check this link . Use method 1 and code the entire length in the ON parm in the example below

http://www.mvsforums.com/helpboards/viewtopic.php?p=2095#2095

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group