Join problem with CR LF issues

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Join problem with CR LF issues

  • Creator
    Topic
  • #53316
    Johnny Anderson
    Participant

      CL v5.8, Sun, Solaris 10, HL7 v2.3.1

      My trading partner sends HL7 files with

    Viewing 1 reply thread
    • Author
      Replies
      • #77261
        Chris Williams
        Participant

          Johnny,

          Your foreach loop is not being fed a proper Tcl List. It’s just that big file of segments. The loop is going to split it on any whitespace it finds. You need to split it into a correctly-formed list of messages prior to the foreach loop. Think about splitting on the n characters that you already inserted.

          Cheers.

        • #77262
          Johnny Anderson
          Participant

            Thanks Chris, that fixed it.  I added a 2nd split on n.  I didn’t know the regsub would change it to not be a list.

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