cancel
Showing results for 
Search instead for 
Did you mean: 

Removing Extra Line in output file

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Iñaki,

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

Cheers.

Eduardo M.

moorthy
Active Contributor
0 Kudos

HI,

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

Hope this helps,

Regards,

Moorthy

Former Member
0 Kudos

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!