iNTERFACEWARE Products Manual > Installing and Using Chameleon > Learning the Basics > Working with Segments and Segment Grammars > Extracting Data From Repeating Segments |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
A common problem customers have is extracting data from repeating segments in messages. Consider the following message:
The above message contains the following segments:
Since the NK1 segment occurs more than once, you obviously want to keep the data from both segments instead of just overwriting the data. This can easily be done using Chameleon. To properly extract data from repeating segments:
Notice that the Next_of_Kin table has been filled with two rows of data, one for each NK1 segment in the message. |