Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Eleminating DUP rows in syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Eleminating DUP rows in syncsort
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

Site Director


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

PostPosted: Wed Feb 18, 2009 1:26 am    Post subject:
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: 500
Location: USA

PostPosted: Wed Feb 18, 2009 9:15 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
This topic is locked: you cannot edit posts or make replies. DB2 query Using Recursion, Converting... smilewithashu2 DB2 3 Tue Jan 03, 2017 12:50 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us