LaToya
You can use a pair of TPS procs. On the inbound thread you can get the original filename and store it in metadata USERDATA. On the outbound thread you retrieve the filename from USERDATA and use it to override the filename that was set by fileset-local.
Inbound:
# Get the filename from the inbound driver control
set driverctl [msgmetaget $mh DRIVERCTL]
set fname “”
keylget driverctl FILENAME fname
set filename [file tail $fname]
# Save file name in userdate
set userdata [msgmetaget $mh USERDATA]
keylset userdata FILENAME $filename
msgmetaset $mh USERDATA $userdata
Outbound:
# Get the filename from USERDATA
set userdata [msgmetaget $mh USERDATA]
keylget userdata FILENAME filename
# Update DRIVERCTL
set driverctl [msgmetaget $mh DRIVERCTL]
keylset driverctl FILESET.OBFILE $fname
msgmetaset $mh DRIVERCTL $driverctl
Sorry I can’t provide complete procs, but this should give you an idea how to accomplish what you want.
- Mark Thompson
HealthPartners