Too Many Carriage Returns

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Too Many Carriage Returns

  • Creator
    Topic
  • #48177
    Mark Brown
    Participant

      For one thread, the outbound message has three too many carriage returns dangling at the end.  I’m not sure what could be causing them.

      What we’re trying to do is route specific DFT messages from one thread and send them another thread that feeds an application running elsewhere.  The application extracts the account number then queries the hospital system for demographics, builds an A28 message, then sends the completed A28 and the DFT back to a different thread on the engine and out of our network.  The remote receiving system chokes on the extra carriage returns.

      I looked at the constructed message just prior to being sent and all it has is one carriage return on the last line.  The program adds x0b at the beginning and x1cx0d at the end and off it goes.  The same thing for the DFT.  Both messages leave the engine with extra carriage returns.  The only other processing to occur is a tcl proc to make some changes to the MSH segment.

      The engine is running 5.3.1 on Windows 2003.  

      Any ideas would be appreciated.

    Viewing 2 reply threads
    • Author
      Replies
      • #57911
        Jim Kosloskey
        Participant

          Mark,

          If you have not done so, turn the EO all the way up.

          Then look at the message before the PDL and again in the PDL. This should help you find out where the extra carriage returns are being inserted. If the PDL dump in the EO does not show the extra cariage returns, then it is happening post engine.

          My first of the usual suspects would be any Tcl procs you have involved in the process of generating the message(s).

          If the EO indicates a specific place where the message goes sour, remove any Tcl procs involved at that point and see if the problem dissipates. If it does, fix the Tcl proc.

          Jim Kosloskey

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

        • #57912
          Mark Brown
          Participant

            The extra carriage returns disappear when I remove the tcl proc. But there’s  nothing in the proc that I can see that would cause extra carriage returns.  I was hoping to avoid using an xlate, but maybe that will solve the problem?

          • #57913
            Jim Kosloskey
            Participant

              Mark,

              I have never seen an Xlate add unwanted line feeds or carriage returns.

              This may be just me, but an Xlate would have been my first choice of action. You may still need some Tcl within the Xlate depending on your requirements.

              If you do not want to use the Xlate, then start testing your Tcl proc in anger to see where it is broken.

              Jim Kosloskey

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

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.