cancel
Showing results for 
Search instead for 
Did you mean: 

File format

Former Member
0 Kudos

Hello All,

In my scenario,PI is reading a flat file in the below format:

HEADER DETAIL

ITEM DETAIL

HEADER DETAIL

ITEM DETAILS

ITEM DETAILS

==

==

TRAILER

But while writing the same file(one to one mapping) the structure is of the below format:

HEADER DETAIL

HEADER DETAIL

ITEM DETAIL

ITEM DETAIL

ITEM DETAIL

As per my requirement, I want my output format should match with Input format.

Please help me in this regard

Regards,

Moorthy

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Changes your receiver structure as

Record

-


Header

-


Detail

Create a Record Node as a parent node to group the Header and Detail, so that Header will be followed by the proper detail

Edited by: chandra shekhar on Jun 27, 2011 12:58 PM

Former Member
0 Kudos

Closng the thread.

Shabarish_Nair
Active Contributor
0 Kudos

you might want to try this - /people/shabarish.vijayakumar/blog/2010/01/14/file-conversion-using-nodeception

Harish
Active Contributor
0 Kudos

Hi Moorthy,

Please use thefollowing parameter in your FCC(I am assuming you are getting the problem after FCC):

xml.recordsetStructureOrder var

As your incomming file structure is in variable format.

If you get the correct structure after FCC then i hope there is no need of one to one mapping.

Regards,

Harish

Former Member
0 Kudos

Hello Harish,

Thanks for the response.

Can I configure this parameter xml.recordsetStructureOrder='var' as part of my FCC params in receiver fiel channel?

Regards,

Moorthy

Harish
Active Contributor
0 Kudos

Hi Moorthy,

Yes you can configure the parameter in receiver channel:

xml.recordsetStructureOrder=var

Regards,

Harish