Making a unique message

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Making a unique message

  • Creator
    Topic
  • #55668
    Mark Brown
    Participant

    A week or so ago I needed to split FT1 segments into their own DFT message and with help from here I got that to work great.  But there’s a problem.  Some of the charges are finally going through, but I still have an issue when the FT1 segment is repeated multiple times.  Splitting the message still leaves the message control ID the same for all the new messages.  I tried to increment that number for each iteration, but nothing changed so I’m sure I’m doing something wrong.  I tried to follow some examples on here.  I’d still like to try that but also want to ask if there’s a better way to make each message unique?

    CL 6.0.2 on Windows.

Viewing 3 reply threads
  • Author
    Replies
    • #86066
      David Barr
      Participant

      I don’t think that simply incrementing the number is the right approach. What if you have two inbound messages with control IDs are sequential. If you increment the first one it will conflict with the second. Maybe you can append extra characters or digits if you can do it in a way that will make it unique.

    • #86067
      Keith McLeod
      Participant

      You could take the controlID and concatenate the FT1 segment setID to it.  That way it makes it easily traced back to the source.

      Concatenate MSH:10, -, and  FT1(%g1).#1.[0] to MSH:10 within the iterate and before the continue.

      Something like 1234567-1, 1234567-2, …

      Or

      Concatenate MSH:10, -, and  $%g1 to MSH:10 within the iterate and before the continue.

      This would uses your iterate counter with the first iterate being 0.

      Something like 1234567-0, 1234567-1, …

      Just thoughts.  Hope it helps….

    • #86068
      Mark Brown
      Participant

      Thanks for the help.  That worked concatenating the iteration variable with the control id.  Sadly, it didn’t fix the problem. At least I know how to do this now.  ðŸ™‚

    • #86069
      Mike Taylor
      Participant

      Mark if your code is still not working email me and I can send you the code I had to use for the DFT messages in which I dealt with this issue.

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

Forum Statistics

Registered Users
5,129
Forums
28
Topics
9,301
Replies
34,447
Topic Tags
288
Empty Topic Tags
10