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

how to merge and split in one step


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

Active User


Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Tue Oct 31, 2006 11:48 am
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 Developer


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

PostPosted: Tue Oct 31, 2006 9:17 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts JCL/SORT to Split Records SYNCSORT 28
Search our Forums:

Back to Top