I have a process that is an inbound fileset-ftp that pushes raw to an outbound fileset-local. The one inbound is on a schedule that executes twice daily. Files A and B are both in the same remote directory. File A is picked up at 04:30; File B at 23:45. They both are delivered to the same location on a network share. File B, however, also needs to go into a child archive directory with a timestamp prepended.
I am developing a TCL proc that goes on outbound pane of the outbound connection in the TPS Outbound Data container. Since both files will go through this TCL, the thought is to get the name of the file and handle only File B specially. This is probably TCL 101, but is it possible to “duplicate” the file here and send another copy to another destination? Is it possible to copy the mh into a new message with new OBFILE and OBDIR keyed lists? Here is a snippet of the TCL I have already:
run {