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

FCC Parameter

Hi ,

I have a flat file whtch contain Country code and Country name with sapce in both , As Example is given.

AF Afghanistan

AG Antigua and Barbuda

AI Anguilla

AL Albania

AM Armenia

AN Netherlands Antilles

AO Angola

Please give me Content Converstion parameter details for that.

Thanks

Laxmi Bhushan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Sep 09, 2010 at 09:03 AM

    Hi,

    Refer this:

    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter

    and use this Hexadecimal representaion for space '0 x 20'(instead of Tab in above mentioned blog).

    Thanks

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2010 at 09:53 AM

    Hi laxmi,

    Assuming the recordset name ins row, apply the below FCC parameters:

    row.fieldNames: <Name of the 2 fileds(country ID & Country Name)>

    row.fieldSeparator: '0x09'

    row.endSeparator: 'nl'

    -Supriya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2010 at 12:39 PM

    Hi Laxmi,

    Can you please tell me one thing Country name values have any SPACE in-between or not( E.g.,?.Antigua and Barbuda or Netherlands Antilles )

    If it has SPACE in between then it will be a problem if you specify SPACE as field separator.

    Regards,

    Nayan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09, 2010 at 01:29 PM

    plase, paste the Data Type you created for this file and we will give you the proper FCC parameters

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09, 2010 at 01:34 PM

    I assume this is for sender File Adapter with file content conversion

    for the input structure

    <filecontent_ip_mt>

    <root>

    <country>

    <countrycode/>

    <countryname/>

    </country>

    </root>

    </filecontent_ip_mt>

    Specify the following in the sender cc.

    Adapter Type :FILE

    Transport Protocol : FILE SYSTEM(NFS)

    Message Protocol : File content conversion

    specify the source directory and the file name from where you have to pick the file.

    Processing mode should be DELETE.

    Document Name : filecontent_ip_mt

    Document Namespace:

    Recordset name : root

    Recordset Structure : country,*

    Recordsets per message : *

    country.fieldNames=countrycode,countryname

    country.fieldSeparator=0X20

    country.endSeparator='nl'

    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.