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

How to use only 2nd and 20th line in FCC?

Hello All,

Good Evening...

I have a csv file which i need to convert into an xml using content conversion.

The document consists of 20 lines, but we need only 2nd line and 20th line, not required anyother lines.

As second and 20th lines are mandatory in mapping as mapped to target field.

source Structure like as below :

MT_Test
Rundata
Row
Name
ID
ContactFile like as below:

START-OF-FILE
RUNDATE=20161208
FIRMNAME
PROGRAMNAME
PROGRAMFLAG
REPLYFILE
SECMA
COLUMN
CLOSI
DER
DAT
DELIM
TIM


START-OF-FIELDS
NAME
ID
Contact


TIMESTARTED=Thu D
START-OF-DATA

How to achieve this. Please help me experts on this.?

Thanks in Advance.

Regards,
VB

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Dec 22, 2016 at 12:01 PM

    Hello VB,

    I would suggest you get the entire file content in XML then map to the targets as per requirement.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2016 at 12:29 PM

    Hello Raghuraman,

    Thanks for replay.

    But unwanted data is there in file, these data need to be ignored as per the requirement.

    So please help us how to achieve this?

    Regards,

    VB.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 22, 2016 at 01:10 PM

    Hello VB,

    If you ignore them in the mapping level it wont come in the target also.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 23, 2016 at 05:59 AM

    Hi VB!

    As Raghu has already said, just read all rows of your file in XML structure using FCC and further in your message mapping use "Index" function, for example, to map only needed rows to your target structure.

    Regards, Evgeniy.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2016 at 07:28 AM

    Hello Evgeniy/Raghuraman,

    Thanks for your clarification...

    But can you please let me know step by step how to achieve at mapping end.

    Regards,
    VB.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 27, 2016 at 09:49 AM

    Hello VB,

    Just dont map the fields which need not be passed and map the fields with the logic which needs to be passed.

    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.