Inserting an obx segment between segments

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Inserting an obx segment between segments

  • Creator
    Topic
  • #52023
    mary brewer
    Participant

      I am trying to insert an obx segment in between existing obx segments.

      I can insert the line, but it overwrites one of my lines of data, it is replacing not making another OBX segment.

      I have attached a screen shot of the xlate.

      Any ideas? I am so close and really need to get this resolved.

      Mary

    Viewing 4 reply threads
    • Author
      Replies
      • #72758
        Jim Kosloskey
        Participant

          Mary,

          Once you decide you need to use your own outbound counter (in this case because you need to add an OBX), you should use the %g99 on the outbound all the time. I see you are using the counter some of the time.

          So my suggestion is to change all of your outbound references to the OUTBOUND OBX group from %g1 (the Xlate’s counter) to %g99 (your counter).

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

        • #72759
          mary brewer
          Participant

            Hi Jim, I did that, but it still replaced the one line instead of inserting..

            Any ideas?

          • #72760
            Jim Kosloskey
            Participant

              Mary,

              Repost the current logic and if you can the first 61 OBX of the inbound and what the outbound looks like.

              One thing to note is you are using %g99 as the Set ID – however %g99 is relative to zero but typically Set IDs are relative to one. So when your @line_cnt  equals 60 your %g99 will have the value of 59 and your Set ID in the resultant OBX will be 59. Perhaps this is misleading you into thinking you have replaced. Check to see if your first outbound OBX Set ID is zero.

              My suggestion (even if this is not the issue) is to use a MATH ADD $%g99 =1 –> OBX-1.

              If you want to you can email me directly and we can work on this off line.

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

            • #72761
              mary brewer
              Participant

                Hi John, I sent you the document and some other items, if you could please look at this I would appreciate.

                Getting lots of heat on this topic from my users.

                Sent to your personal email

              • #72762
                mary brewer
                Participant

                  SORRY.. JIM,, Didn’t meant to rename you to John

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