I’m hoping this is a stupid question with a simple solution: I’d like to know how to hold onto a message for a few seconds before forwarding it to another thread?
for instance:
thread a gets an hl7 message from an outside source
within thread a, use tcl and hold the message for 5 seconds
after 5 to 10 seconds, forward the message to thread b
I once had to hold a message for longer than that. What I did was write the message to a local directory (for me somewhere on the rs/6000) then create another thread (fileset-local) that had a tps proc for the directory parse that would check to see if the file was at leat 2 minutes old. If it was, include it. You can then go on from there.