Ariba,
I would not use an xltp type Tcl script. Rather I would use a TPS script and place it in the Outbound Tps (probably pre-write).
The script would replace all occurrences of T – but why stop there? Why not make allowances for all of the control characters as outlined in the HL/7 specification?
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.