Skip to Content
author's profile photo Former Member
Former Member

Contain Tab in source fixedlength file

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?

1.png (6.4 kB)
2.png (6.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2012 at 12:55 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 09, 2012 at 01:18 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.