Creating two messages from one

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Creating two messages from one

  • Creator
    Topic
  • #47570
    Mark Brown
    Participant

    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?

    Thanks,

    Mark

Viewing 2 reply threads
  • Author
    Replies
    • #56150
      garry r fisher
      Participant

      Hi,

      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.

      Regards

      Garry

    • #56151
      Jay Yeiser
      Participant

      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.

    • #56152
      Rob Abbott
      Keymaster

      You shouldn’t need to write any code for this.

      Rob Abbott
      Cloverleaf Emeritus

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,295
Replies
34,439
Topic Tags
287
Empty Topic Tags
10