Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us