Ivan,
Thanks for the reply. As for “Does every segment end with a new line character?”, the answer is ‘yes’. With respect to is position 6-8 valued for a segment regardless of the presence of the segment, the answer is ‘no’. If a segment is not present (i.e. TRN), then there will not be a line in the data that has TRN in positions 6-8. Regarding more detail about the data, suffice it to say that for each segment (ie. ISA, TRN NM1, etc.) there is a different FRL (which is what is inserted into the HRL definition); each segment has a different field/record layout.
I know that I can handle this type of transaction within tcl and use the GRM functions to access the data via my FRL’s (extracting position 6-8 from the current line, and apply the appropriate FRL with GRM), and then manipulate the data, but I would like to keep this within the context of the normal toolset for maintainability by others.
Hope this makes sense.
Thanks,
Jim Cobane
Henry Ford Health