Deleting part of segment

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Deleting part of segment

  • Creator
    Topic
  • #51861
    Sebastien Bazile
    Participant

      Anyone has any idea on how to delete part of a segment that is not needed. The obx segment is usually very long and the receiving vendor only one Line 1 to 10 and delete everything else.

      your help will be greatly appreciated.

      thank you.

      sebastien

    Viewing 3 reply threads
    • Author
      Replies
      • #72022
        Robert Milfajt
        Participant

          I am not sure what you mean, and can glean three different scenarios.  Which of these apply to you?

          1.  You have multiple OBX segments and you only want to send OBX|1 and OBX|10, and supress the rest.

          2.  You have multiple fields in OBX and only want to send OBX-1 and OBX-10.

          3.  The result you get in OBX-5 has multiple lines, and you only want to send line 1 and line 10.

          Robert Milfajt
          Northwestern Medicine
          Chicago, IL

        • #72023
          Sebastien Bazile
          Participant

            It’s number 1.

            I have multiple obx segment but only want to sent 1 through 10 and suppress anything after that. Please help.

            thank you.

          • #72024
            Tom Rioux
            Participant

              If you have more than 10 OBX’s and you only want to send OBX|1 through OBX|10, then you can use a list variable in your iteration over the OBX segments instead of the the segment variable.  Set it up as:

              Type = list

              Basis = 0 1 2 3 4 5 6 7 8 9

              Variable = %l1

              Just place your %l1 variable where you would normally put the %s1 iteration variable.   If your OBX segments are part of a group, then don’t forget the %g1 iteration variable in your path.

              Hope this helps…

              Tom

            • #72025
              Sebastien Bazile
              Participant

                is that after I do a pathcopy?  thanks.

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