cancel
Showing results for 
Search instead for 
Did you mean: 

endSeparator in File Receiver channel

Former Member
0 Kudos

Hello Experts,

I'm converting following target structure to a file (FCC).

My file format should be:

Iwas able to acheive everything except this: I want the Header1=>BaiscHeaderBlk of 2nd Records to be on the same line as Row12=>EndTxtBlk of 1st Records.

In short in FCC, is there a way i can add blank as the end separator for Row12 ?

Accepted Solutions (1)

Accepted Solutions (1)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Aman,

Can you try giving endSeparator as '0' in your FCC and check the outcome.

Regards

Former Member
0 Kudos

Thanks Vishnu.

That worked!

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Aman,

In this specific requirement, you should not use endSeparator for Records structure, i.e., you should not use Records.endSeparator in FCC.

Reason : This will then not put a carriage return after the end-point of first Records structure which is Row12=>EndTxtBlk of 1st Records structure and in turn will meet with the requirement.

Note : Please do not forget to put fieldSeparator, which is mandatory in this case.

Kind Regards,

Souvik

Former Member
0 Kudos

Thanks Souvik for replying.

I've not used Record.endSeparator then also it puts carriage return.

I've marked the correct answer which worked for me.

maheswarareddykonda
Active Contributor
0 Kudos

Hi Aman,

it seems some wat tricky

but i can suggest you modify the structure which u shared like:

keep Row12 subelemets also in Header1 node.

if that not suppose to do, you can create the different structure like below:

<MT_XXX>

  <rec>

     <Header>

         <Customerref>

     <records>

          <basichead>

          <paytype>

          <endappl>

          <endTxtblk>

and add one more mapping as multimaping

in that mapping use source structure as which u posted and target use above one.

BR,

Maheswarareddy

Former Member
0 Kudos

Thanks Maheswarareddy for answer.

I too thought to change my structure but that was my last option.