Originally posted by derek march
I have a site that needs to have an FT1 split. Basically if a message has MSH, EVN, PID and 5 FT1 segments my xlate splits that into 5 separate messages, each having MSH, EVN, PID and 1 of the FT1 segments.
In MSH-10 there is a message ID, I need each of the 5 messages to have a unique message ID. And subsequently that number needs to be unique from every other message in the file.
What I'm attempting to do is store MSH-10 as
@msgid before the iterate, then copy MSH-10 back into the messages after the iterate command. I assume there is something I can write into the pre-proc area of the second copy to increment the message ID number, but I am not well versed enough in TCL to know what to do.
Any help would be great, thanks