Tom,
I think Gary was trying to point out the requirement seems to be the outbound filed must be 5 characters in length even if that means there might be some leading zeros.
So trim will not preserve the length requirement in all potential cases.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.