Debatching a single file to multiple messages

Asked By Pavana Kumari
04-Nov-09 03:09 AM
Earn up to 0 extra points for answering this tough question.
Hi,
 
     I have a scenario where i have to debatch the multiple sets of records into the single sets of records.
The input file is like this:
 
Record1
Record2
Record3
Record3
Record4
Record5
Record4
Record5
Record1
Record2
Record3
Record3
Record4
Record5
Record4
Record5
Record4
Record5
Record4
Record5
Record4
Record5
Record1
Record2
Record3
Record3
Record4
Record5
Record4
Record5
Record4
Record5
Record4
Record5
 
I sould get the output as 3 different files as:
File1:
Record1
Record2
Record3
Record3
Record4
Record5
Record4
Record5
 
 
File2:
Record1
Record2
Record3
Record3
Record4
Record5
Record4
Record5
Record4
Record5
Record4
Record5
Record4
Record5
 
File3:
Record1
Record2
Record3
Record3
Record4
Record5
Record4
Record5
Record4
Record5
Record4
Record5
 
For now, I have a FlatFile Schema that validates the Incoming file structure.
As of my understanding from the blogs, I think that there should be other schema defined to address as the Document schema in the Rcv. Pipeline where the debatching happens and multiple files get generated.
I have to apply the map on this independent schema to transform it into the 810 EDI message.
 
Please help me on this!
 
Thanks,
Pavana

  RE:

Chaitanya Talasila replied to Pavana Kumari
23-Nov-09 09:14 AM

At flatfile schema node, select the property allow the records needs to be break at infix=true

and another property is select  the record node and select the property min occurs =1 and maxoccurs=10

 

Create New Account