cancel
Showing results for 
Search instead for 
Did you mean: 

Content conversion for multiple recordesets of the same type

former_member187447
Participant
0 Kudos

Hi

I have a scenario where in i have the follwing structure

BXX

<>

HDR

<>

ITM1

<>

*TM2

<>

Now sometimes i get mutiple records like the following

BXX

<>

HDR (first occurance)

<>

ITM1

<>

ITM2

<>

HDR (2nd occurance)

<>

ITM1

<>

ITM2

<>

ITM3

<>

HDR (Third occurance)

**...**

**....**

**....**

*So now how should my content conversion be to achieve this.*

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

>>Now sometimes i get multiple records like the following

What kind of source file you are getting? If this is a flat file, the structure should not come with multiple recordset in a single line.

You should get multiple lines. like below

BXX *** HDR1 *** ITM1 *** ITM2

BXX *** HDR2 *** ITM1 *** ITM2

BXX *** HDR3 *** ITM1 *** ITM2

If you are not getting structure like above, you should ask the source application to send in that way.

All applications i have seen give the structure i mentioned above.

The structure which you have mentioned comes in XML file. (one parent-multiple children)

Thanks

Aamir

former_member187447
Participant
0 Kudos

Hi Aamir,

I am getting multiple lines.

the problem seems to be in the mapping. where in i am missing the HDR and getting only the ITM segments.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Have you checked this blog..talks about random pattern content... this might be helpful

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

agasthuri_doss
Active Contributor
0 Kudos

Kalyan,

>>Now sometimes i get mutiple records like the following

My understanding is - you are getting the file from source system right, If mainframe as source system means they can consolidate the file as

BXX

**

HDR

**

ITM1

**

*TM2

**

Cheers

Agasthuri