Skip to Content
0

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

Dec 22, 2016 at 11:50 AM

54

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

6 Answers

Raghuraman S Dec 22, 2016 at 12:01 PM
1

Hello VB,

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 22, 2016 at 12:29 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Raghuraman S Dec 22, 2016 at 01:10 PM
0

Hello VB,

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

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Dec 23, 2016 at 05:59 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 27, 2016 at 07:28 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Raghuraman S Dec 27, 2016 at 09:49 AM
0

Hello VB,

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

Share
10 |10000 characters needed characters left characters exceeded