We’re in the process of setting up a new ancillary system and the vendor (ECIN) requested that instead of an A17 message, we send two A02 messages.
I’m not at all sure how to do this. I have an example of changing one type of message to another, but nothing like creating two different messages from one. Are there any good examples of how to do this somewhere? Any helpful hints?
There are a number of ways to do this. The simplest would be to do it in your routing. Set up a route so that it has two outbound messages each with its own xlate.
The second method would have more overhead – in an Inbound TPS, copy your message (msgcopy), change it slightly using msgset, msginsert or grms (which ever you are more comfortable with) so that you can identify the new message and then CONTINUE them both. You would then have two separate routes to process the transactions.
I believe you’ll have to take data from each sequence of repeating PID and PV1 segments from the A17 and put those into separate A02 messages. You’ll want to PATHCOPY MSH and EVN segments in Xlate or copy both segment into a variable or variables for TCL and create two messages. You’ll then want to place each sequence of repeating PID and PV1 segments into the two different messages. There are many ways to code as to how to do this. I’ll have to investigate to determine the best way.