Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › string at end of message
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
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 30+ years Cloverleaf, 60 years IT – old fart.
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.
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)?
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….
run {
# ‘run’ mode always has a MSGID; fetch and process it
keylget args MSGID mh
msgset $mh [msgget $mh]ENDOFTRXr
lappend dispList “CONTINUE $mh”
}
that did the trick. thank you all for the help. I owe you all a frosty beverage.