on 04-27-2010 2:48 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Read the entire file as is and then in mapping ignore (do not map) the required fields (values)
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.