Problem is on outbound I lose my trailing spaces…

Clovertech Forums Cloverleaf Problem is on outbound I lose my trailing spaces…

  • Creator
    Topic
  • #119350
    Tom Gilbert
    Participant

      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…?

    Viewing 4 reply threads
    • Author
      Replies
      • #119351
        James Nelson
        Participant

          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.

        • #119352
          Tom Gilbert
          Participant

            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.

          • #119353
            Jim Kosloskey
            Participant

              Is the Xlate FRL to FRL?

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

            • #119354
              Jim Kosloskey
              Participant

                Also what release of Cloverleaf?

                email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

              • #119355
                Charlie Bursell
                Participant

                  The FRL configure allows you to define the fill character which, by default is the empty string (null). Change it to space and try that

              Viewing 4 reply threads
              • You must be logged in to reply to this topic.