IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Syncsort duplicate filter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
subbuy2k

New User


Joined: 17 Apr 2009
Posts: 8
Location: milford

PostPosted: Thu Apr 22, 2010 8:23 pm
Reply with quote

Hi,
I have records coming from 3 different states(NY,NJ,CT). If the customer # is part of all three states then in output file i have to write only the NY record. If not i have to write the other two states.Can we do this in syncsort. I dont want to do this in cobol pgm or icetool.

example
INPUT
========
1111111 NY
1111111 NJ
1111111 CT
2222222 NJ
2222222 NY
3333333 NJ
3333333 CT

OUTPUT
-----------
1111111 NY
2222222 NJ
2222222 NY
3333333 NJ
3333333 CT
__________________
Thanks
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Apr 22, 2010 9:16 pm
Reply with quote

Your description does not match with your example, as far as I understand. Your description says:
Quote:
If the customer # is part of all three states then in output file i have to write only the NY record.
then for this input
Quote:
2222222 NJ
2222222 NY
why do you have this
Quote:
2222222 NJ
2222222 NY
as output, it should have been
Quote:
2222222 NY
?
Back to top
View user's profile Send private message
subbuy2k

New User


Joined: 17 Apr 2009
Posts: 8
Location: milford

PostPosted: Thu Apr 22, 2010 9:24 pm
Reply with quote

2222222 is not part of 3 states. Its part of NY and NJ not part of CT. So we need both.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Sat Apr 24, 2010 2:58 am
Reply with quote

subbuy2K,

Please do not post the same question in multiple forums. This question has already been addressed in the other forum. Therefore, I am locking this thread. If you have any further questions regarding this issue, please post where the solution was provided. Thank you.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts Help to Filter File Manager Copybook ... DFSORT/ICETOOL 14
Search our Forums:

Back to Top