I had heard about user metadata for years on cloverlech without understadning it enough to make use of it.
Finally with the help of Jim Kosloskey, I wrote some procs to utilize user metadata to pass information from the xlate to the outbound thread it was routed to.
Here is a URL with some details to help visualize an understanding of user metatdata:
<a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=1367″ class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=1367
My example passes infromation about if a document is too large and was tuncated during xlate, but the concept can be adjusted for passing a filename like you want.
My truncation input info varible was set during the xlate and was extracted from the message user metatdata in the outbound TPS type UPOC (specifically I used the outbound UPOC protocol).
One thing it sounds like you aren’t familiar with is that user metadata is attached with the message as if it was part of the entire message, so like Charlie said MID is not really used when tracking user metadata.
Look at my screen shots of the “msgdump $msgid” after I set the user metadata to see if it makes more sense.
If you leave the outbound thread down, you can also see the user metatdata in flight on the route using hcidbdump at a back end prompt on the cloverleaf server.
Since your intput value for filename will be set perhaps in the inbound TPS remeber use
xpmmetaget in xlate UPOCs
msgmetaget in non-xlate UPOCS like a TPS stack
which will make more sense when you see the example TCL code at the URL I spoke of.
Russ Ross
RussRoss318@gmail.com