cancel
Showing results for 
Search instead for 
Did you mean: 

line gap between record to record using FCC

Former Member
0 Kudos

Hi Experts,

i am working on xml to fcc scenario.In target text file i want line gap between each record.

eg:

1001,ABCD,23

1002,CDF,45

1003,FSF,34

what are the parameters do i need to provide in reciever fcc adapter?

please help me in this issue.

Regards,

Radhika.

Accepted Solutions (0)

Answers (6)

Answers (6)

madhusudana_reddy2
Contributor
0 Kudos

Channel will add only single line break, so you add newLine in mapping mannually by below UDF. You may give third field as input to this UDF. It will work fine

String string = ( new StringBuffer("\n")).append(a).toString();

return string;

thanks,

Madhu

former_member192295
Active Contributor
0 Kudos

Hi,

Execute below statement it will work.

record.endSeparator : nl

record.endSeparator : nl

or

record.endSeparator : nl

record.beginSeparator : nl

Former Member
0 Kudos

Hi Radhika,

I guess you can achieve this with "NameA.absoluteRowWidth=<noOfColumns>" along with "xml.endSeparator".

If the separators do not contain any line breaks, the text document is generated as a single line of text. To restrict the width of the text, use this parameter. <noOfColumns> represents the maximum number of columns in this case. This parameter also functions together with the specification of a line break for xml.endSeparator.

This value requires NameA.addHeaderLine=0 to be specified.

Give a try..

Regards,

Former Member
0 Kudos

Hi Experts,

i have also the same requirement.

i tried with both the cases what u suggested.i didn't get required output.

pls suggest me any other ways to get the requirement.

regards,

bhuvan.

Former Member
0 Kudos

Radhika,

Put endSeparator twice like 'nl''nl'

---Satish

Former Member
0 Kudos

Hey

You can specify field.beginSeparator as 'nl' for the first field(the field which has 1001,1002,1003)

Thanks

Aamir

Former Member
0 Kudos

Hi,

I tried but didn't get the output. Any other idea?

Thanks,

Radhika