cancel
Showing results for 
Search instead for 
Did you mean: 

File content conversion: String with commas to CSV

Former Member
0 Kudos

Hi Experts,

I have the following structure

DATA (1..n)

...Result (1..1)

The Result field contains a string like below

a,b,c,d,e,f,g,h,i,j

How do I put this into File Content Conversion when I want the receiver to be a CSV file? One cell per letter.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Outbound: you could convert your flat file to xml at first. Make the necessary mapping to the destination structur.

http://www.riyaz.net/blog/xipi-file-content-conversion-for-simple-structure/

Inbound: Content convernsion from xml to csv.

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file

Cheers

Serdar

stefan_grube
Active Contributor
0 Kudos

> How do I put this into File Content Conversion when I want the receiver to be a CSV file? One cell per letter.

Ask the receiver of the file, what is expected in this case.

Maybe you use a semicolon as divider?

Former Member
0 Kudos

The receiver has the structure above.

And the "Result" field contains a string like below

a,b,c,d,e,f,g,h,i

So they are separated by commas. I want to put each letter in one cell of the CSV.

stefan_grube
Active Contributor
0 Kudos

> So they are separated by commas. I want to put each letter in one cell of the CSV.

No I get the point.

Just treat this as one field in FCC.