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

Eleminating DUP rows in syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
joseph murphy

New User


Joined: 24 Nov 2008
Posts: 17
Location: USA

PostPosted: Tue Feb 17, 2009 11:41 pm
Reply with quote

File A
******
ID
--
123

File B
*****
ID City
--- ---
123 Co
123 TX
123 AG

In Sync Sort i am doing

JOIN KEYS F1=(1,3)
JOIN KEYS F2=(1,3)
JOIN UNPAIRED,F1
REFORMAT(F1:1,3,F2:1,3,F2:4,2)

i need the output like ,

123 TX

i dont need the other two rows in the output,how can i achieve this in syncsort,
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 18, 2009 1:26 am
Reply with quote

Hello,

What "rule" determines that the TX record is the one kept?

What if there were these records:
123 Co
123 TX
123 AG
123 MM
123 TG
123 GG

Or more, or less. . .

Quite difficult to implement with no rules. . .
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Wed Feb 18, 2009 9:15 pm
Reply with quote

Joseph,

If you are going to post your request in a public forum, please do not send me a private email with the exact same question. I have already provided you with an initial solution based on your original request. Since you have apparently changed the requirements, please post the complete rules here, as Dick has requested.

Thank you.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top