I have a flat file with parent child records parent record is identified by 01 and child records from 02 to 16. here is the layout.
010101ABC0001230412192L 01.... Parent1
02NAME...ADDRESS....01256389201419... CHILD1
03NAME...ADDRESS....01256389201419... CHILD2
010101ABC0001230412192L 01.... Parent2
02NAME...ADDRESS....01256389201419... CHILD1
03NAME...ADDRESS....01256389201419... CHILD2
04NAME...ADDRESS....01256389201419... CHILD3
Now this is what i want for ever record.
010101ABC0001230412192L 01.... 02NAME...ADDRESS....01256389201419...03NAME...ADDRESS....01256389201419...i used cursor before but this time no of child records are different.