cancel
Showing results for 
Search instead for 
Did you mean: 

Contain Tab in source fixedlength file

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

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.