I created a pre tcl to add spaces to fit length. In testing spacing is there for the proc. after it goes through xlate post proc all the trailing spaces are gone. any thoughts on how to retain them…?
If the message is an HL7 message, the reason the spaces are being removed is because, according to the HL7 encoding rules, trailing spaces are not significant so they are removed. This is the same for empty fields at the end of a segment.
If you want to add them after the Xlate, put your tcl proc in the ‘Post Procs’ stack in the Route Details or in the ‘TPS Outbound Data’ stack of the outbound thread.
Sorry this is a flat file and is suppose to be a fixed length. The source cannot pad spaces at end of the segments so I am adding them to get to max length via a pre tcl so I can map correctly in xlate.