cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip lines in FCC Sender

Former Member
0 Kudos

Hi to all.

I have an scenario file to file(XML). I want to avoid two lines at the end of the file.

I not use any mapping because is map

This is my payload

XLine1 aaaa bbb ccc ddd

XLine2 aaaa bbb ccc ddd

XLine3 aaaa bbb ccc ddd

XLine4 aaaa bbb ccc ddd

XLine5 aaaa bbb ccc ddd

EOM0005

EOF0001

I want FCC don't send the two lines at the end (EOM005-this a counter of lines- and EOF001).

Thanks and regards

Accepted Solutions (0)

Answers (3)

Answers (3)

madhusudana_reddy2
Contributor
0 Kudos

Hi Luis,

Use keyfield(in your file example keyfield is aaa) for all the required lines, then in FCC will read all the lines where keyfield appears and ignore other lines where keyfield will not appea. So that now you no need to use mapping.

Note: Make sender and receiver data type structures same. Hope it works.

thanks,

madhu

Former Member
0 Kudos

Hi.

Madhusudana.

thanks for your response. The aaa is not a keyfield is only an example. Actually could be different values.

Former Member
0 Kudos

Hi,

This is nt possible,if u r nt using any mapping.....

So the only workaroud is write a Adapter Module code.. to truncate the last two lines...

Search in SDN u will gt lot of materials for the same.....

If u cannot find.. let us know... Some 1 here will try to give the code...

Babu

Shabarish_Nair
Active Contributor
0 Kudos

>

> Hi to all.

>

> I have an scenario file to file(XML). I want to avoid two lines at the end of the file.

> I not use any mapping because is map

>

> This is my payload

>

> XLine1 aaaa bbb ccc ddd

> XLine2 aaaa bbb ccc ddd

> XLine3 aaaa bbb ccc ddd

> XLine4 aaaa bbb ccc ddd

> XLine5 aaaa bbb ccc ddd

> EOM0005

> EOF0001

>

> I want FCC don't send the two lines at the end (EOM005-this a counter of lines- and EOF001).

>

> Thanks and regards

only two options;

1. do the mapping

2. write an adapter module which will remove the last two lines of the file and then do your content conversion.

former_member200962
Active Contributor
0 Kudos

Read the entire file as is and then in mapping ignore (do not map) the required fields (values)

Regards,

Abhishek.

Former Member
0 Kudos

Hi Abishek.

I don't use any mapping. Only I pass to XML format

Former Member
0 Kudos

> I don't use any mapping. Only I pass to XML format

You have to use mapping, otherwise there is no option in Sender FCC to avoide the last two lines.

former_member200962
Active Contributor
0 Kudos

Since it is in Sender we dont have an option...had it been receiver FCC then fixedLengthTooShortHandling would have helped.

Regards,

Abhishek.