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
 

 

Many to many matching

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
vraki

New User


Joined: 22 Mar 2006
Posts: 1

PostPosted: Mon Dec 06, 2010 4:39 pm    Post subject: Many to many matching
Reply with quote

Hi,

I have sample files below like this.

File1

1111 A
1111 B
2222 A
3333 A
3333 B
3333 C
4444 A
4444 B

File2

1111 X
2222 X
2222 Y
2222 Z
3333 X
3333 Y
3333 Z
5555 X

The output required below like this.

1111 A X
1111 B
2222 A X
2222 Y
2222 Z
3333 A X
3333 B Y
3333 C Z
4444 A
4444 B
5555 X

Raki :?:
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Dec 07, 2010 12:34 am    Post subject:
Reply with quote

This is an odd way of matching so you'd need to explain the rules.

Normally one would expect the output to be like this:

Code:

1111 A X     
1111 B X     
2222 A X     
2222 A Y     
2222 A Z     
3333 A X     
3333 A Y     
3333 A Z     
3333 B X     
3333 B Y     
3333 B Z     
3333 C X     
3333 C Y     
3333 C Z     
...


But you appear to want something different so you have to explain the rules for getting from input to output.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Matching with Key at different postions. rajatbagga DFSORT/ICETOOL 12 Wed Nov 09, 2016 10:58 am
No new posts TSO Logon Failing - Acount Not matching SLNewton TSO/ISPF 1 Thu Aug 25, 2016 9:37 pm
No new posts File matching with PD key on differen... hiravibk DFSORT/ICETOOL 2 Wed Feb 17, 2016 11:40 pm
No new posts DB2 Query to add matching class column senthamizh DB2 5 Fri Jan 15, 2016 8:32 pm
No new posts Compare Files and extract matching re... vimalravi83 DFSORT/ICETOOL 3 Wed Jan 06, 2016 2:42 pm


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