Hi Steve,

I presume you are counting those segments after they have been parsed, and that the issue is that if an IN1 precedes DG1s, then those segments do not appear at all in the parsed message. (I am trying to distinguish this from some sort of issue just counting.)

If that is the case, you may need to adjust your VMD definition in Chameleon.

If you select Message Grammar for any given Message Definition, you will see a list of Segments included in the grammar. There is a checkbox below that says Disregard Segment Order. Once selected, all segments will be parsed regardless of the order they appear.

Let us know if that addresses the issue.

Casey Trauer,
Director, Client Education
iNTERFACEWARE