string at end of message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf string at end of message

  • Creator
    Topic
  • #54946
    Kevin Crist
    Participant

      i have been tasked with adding “ENDOFTRX” at the end of each result.

      Has anyone ever done anything like this? No real sure how to accomplish it.

      Here is an example they sent me:

      OBX|4|NM|METERSN^^GSHLRR||47005912216||||||F|            ||            ||||

      OBX|5|ST|OPERATOR^^GSHLRR||Scooby, Doo||||||F|            ||            ||||

      ENDOFTRX

      Thanks for any help

    Viewing 5 reply threads
    • Author
      Replies
      • #83530
        Jim Kosloskey
        Participant

          I think you will need some post Xlate Tcl if you are building the results with an Xlate.

          I think it should be a fairly simple proc just adding a string to the end of the message then giving the handle back.

          As to whether post Xlate UPoC or Outbound is up to you and dependent on the situation.

          I normally would opt for Outbound.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #83531
          Kevin Crist
          Participant

            I figured a tcl in the OB but not strong enough with to make it happen by the time they want it…which is tonight.

          • #83532
            Jim Kosloskey
            Participant

              I don’t think I have such a script since we would not entertain doing such a thing.

              Does someone else have a script that does what Kevin needs (insert text at the end of a message)?

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

            • #83533
              Keith McLeod
              Participant

                Are you trying to simply add “ENDOFTRX to the end of each result message?

                Maybe in your tps proc add something like:

                set msg [join “$msg ENDOFTRX” r]

                msgset $mh $msg

                Do this in your run stanza before the disposition.

                Not sure how your receiving system will like this though….

              • #83534
                Michael Hertel
                Participant

                  run {

                             # ‘run’ mode always has a MSGID; fetch and process it

                             

                             keylget args MSGID mh

                             msgset $mh [msgget $mh]ENDOFTRXr

                             lappend dispList “CONTINUE $mh”

                         }

                • #83535
                  Kevin Crist
                  Participant

                    that did the trick. thank you all for the help. I owe you all a frosty beverage.

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