on 11-09-2012 4:16 AM
Hi Expert,
Now I am working on one scenario the sender adapter is FTP.
we need use FCC to handle the source fixedlength file.
Usually, if the length of one field is 8 and no value is assigned to this field. we should give 8 spaces for it in source file.
But in this scenario,the source file contain TAB.
Show example.
we can find two records are similar.
How to handle this?
Hi Gong,
Configure the FCC as per the flat file. Do the below mapping to add 8 spaces to the field.
Field--->trim-->constant function(8 spaces)---> target field.
trim function will remove the 23 spaces and constant function will add the 8 spaces.
But if that field legnth is fixed as per that you have to configure FCC. So please ask your third party to provide flat file with standard structure.
Please reward the points if it works for you.
Thanks,
Satish.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sep,
You are answering yourself, you can use in the sender file apapter the fixedlength option if you have files with spaces and others with tabs, at least if the number of tabs and space will be the same. If you have the same number of characteres you could follow the Satish's advice. If the number is no the same, the only solution that i find is to take the end of the line as one field, from the field that has the tabs, and later in the mapping split this field in their correspondings fields.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.