renumbering OBXs

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf renumbering OBXs

  • Creator
    Topic
  • #55111
    Kevin Crist
    Participant

      I am trying to renumber the OBX.1 so that it is in order since some get nulled out. My issue is that when the logic happens that is putting the OBX.1 in order is giving the null segments a number but there isn’t anything in them. I just did this on another xlate that is working fine. Not sure what I’ve messed up with this one.

      Using a standard 2.5.1 variant. Bulkcopy.

      COPY: =0 -> @obx_ctr (at the top of xlate)

      The iterate for the OBX is :

      Segment

      4(0).OBX

      %s1

      There are some IF statements doing some work and a couple that will null out certain segments.

      At the end of all of this, still inside the iterate I have

      Math Add: @obx_ctr  =1 -> @obx_ctr

      COPY: @obx_ctr ->  4(0).OBX(%s1).#1(0)

      I’m sure it is something simple I can’t see. Any help is appreciated.

    Viewing 0 reply threads
    • Author
      Replies
      • #84135
        Jim Kosloskey
        Participant

          Don’t put the Sequence ID (OBX-1) in the segments your are nulling. Once theree is a value anywhere in that segment repetition it will appear.

          Now if you don’t use BULKCOPY – no need for nulling and this does not become an issue.

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

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