How to repeat record in the same row

We have a requirement to create flat file as per below layout

a1;a2;a3 are fields of a record which repeats unlimited times in the same row and delimiter is �;�.

a1;a2;a3;a1;a2;a3;a1;a2;a3;����.; --> Layout � a1;a2;a3 repeats unlimited.
11:12;13;21;22;23;31;32;33;41;42;43; --> Sample data

I could able to repeat above structure line by line (as per mark suggestion).
But our requirement is to repeat record structure in the same row.

Any suggestions?

Regards,
Shiv

Try to use pub.string:tokenize. Feed your record string into the inString parameter and set the delim to an ;. What you’ll end up is a string list in the output pamr valueList.

You would then create a flow service specific to the data structure that would pick off the fields in sequence. You know that strings occurance 1,4,7,10… are field a1, 2,5,8,11… are a2 and 3,6,9,12… are field a3 and so on.

If you have a suedo formatted structure like this, you will need additional flow logic to handle it.

To create the record, use pub.string:makeString and follow a similar path as above.

Thanks Ray!!!
I was thinking in this direction. In my case its outbound i.e. generate flatfile. There are around 150 fields in layout. Luckily above-mentioned structure comes at the end. So first part I planned to use flat file schema and then string logic.

Thanks again!!!

Regards,
Shiv