Skip to Content
author's profile photo Former Member
Former Member

Removing Extra Line in output file

Hi everybody!

I have this xml structure with n <rows> and 1 <docnum>.

In Receiver File Adapter, I write a new line for each row with:

row.endSeparator='nl'

and I made the docnum dissapear in the file with:

docnum.fieldFixedLengths=0 and docnum.fixedLengthTooShortHandling=Cut

The problem is that with the last row I shouldn't write the new line and the docnum always writes also or another 'nl' if I don't specify anything or an space as the 'endSeparator' is needed.

The dessired output is just one line per row and that's it.

I tried to write as endSeparator for the docnum the ASCII character for backspace in order to remove the last new line but it didn't work.

Any Idea? Thanks to all.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2006 at 04:22 PM

    I have been asked if with some type of postprocessing of the message it would be possible. I still don't know what to do.

    Thanks in advance!

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 23, 2006 at 04:31 PM

    HI,

    Check with endSeparator as 0 in the Receiver File COntent Conversion. This will work for the Row Type of Data Sturcture.

    Suppressing Field In Receiver File Adapter

    Hope this helps,

    Regards,

    Moorthy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2007 at 11:28 AM

    Hi Iñaki,

    I've got a similar problem, did you solve the problem?

    Cheers.

    Eduardo M.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.