Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 31
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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us