Skip to Content
avatar image
Former Member

endSeparator in File Receiver channel

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 ?

TargetXml.JPG (41.4 kB)
Capture.JPG (37.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 13, 2015 at 11:05 AM

    Hi Aman,

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

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 13, 2015 at 10:44 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 13, 2015 at 02:31 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.