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
 

 

how to merge and split in one step

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

New User


Joined: 31 Oct 2006
Posts: 29
Location: brisbane

PostPosted: Tue Oct 31, 2006 11:48 am    Post subject: how to merge and split in one step
Reply with quote

I have a set of FBA files (F1 ... F10 say). They are already sorted on a common key (pos 1 - 30), and I want to merge them together and split out into separate files. The split must ensure that records that have a common key value are kept together.

Eg -

F1 has

ID1 ... abc
ID1 ... def
ID2 ... xyz

F2 has

ID1 ... qwe
ID2 ... qaz

if i am splitting into (say) 2 files then I want something like :

F1 :

ID1 ... abc
ID1 ... def
ID1 ... qwe

F2 :

ID2 ... xyz
ID2 ... qaz

now this is easy to do in two steps - ie, merge into one file, and split out based on a test of a numeric value is position 1-30.

what i really want is to do this on one step - ie, go from one file (FBnnn) to N files of VBnnn in one step. can this be done ?
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 Oct 31, 2006 9:17 pm    Post subject:
Reply with quote

Quote:
now this is easy to do in two steps - ie, merge into one file, and split out based on a test of a numeric value is position 1-30


Why would you need two steps (passes)? Just do the MERGE and use OUTFIL statements to split off the records in one pass.
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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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