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: 23
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 How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts how to split records based on specifi... Venkata Ramayya DFSORT/ICETOOL 6 Wed Sep 28, 2016 3:20 am
No new posts Increase the screen size after split mistah kurtz TSO/ISPF 2 Fri Sep 02, 2016 6:39 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


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