Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • 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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded