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

Many to many matching


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Tue Dec 07, 2010 12:34 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Rexx pattern matching on PS qualifer ... CLIST & REXX 1
No new posts File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts Matching and non matching records usi... DFSORT/ICETOOL 11
No new posts Need assistance formatting when joini... SYNCSORT 8
No new posts One-One matching using SORT SYNCSORT 14
Search our Forums:

Back to Top