Thomas,
In your outbound thread, add a tps where you can change the file name through driverctl. After you retrieve your field “orc2” from the message you can add something like this:
set outfile $orc2.txt
set driverctl “{FILESET {{OBFILE $outfile}}}”
msgmetaset $mh DRIVERCTL $driverctl
Then continue the msg.