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

Splice to combine fields of 3 files on a key


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mgl

New User


Joined: 12 Dec 2005
Posts: 29
Location: Belgium

PostPosted: Thu Mar 08, 2007 8:28 pm
Reply with quote

I need to combine fields of 3 files on a key and don't manage to achieve it with splice.

Datasets are FB with key in column 1.

file1 contain following records:

1A
2B
3C
4D

file2 :
1K
1L
1M
2N
2O
3P

file3:
1R
1S
1T
2U

I expect the following data in my result file :

1AKR
1AKS
1AKT
1ALR
1ALS
1ALT
1AMR
1AMS
1AMT
2BNU
2BOU
3CP
4D

MicheL
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: Thu Mar 08, 2007 10:01 pm
Reply with quote

That's a cartesian join. SPLICE can't do that.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top