xlate with iterate

Clovertech Forums Cloverleaf xlate with iterate

  • Creator
    Topic
  • #119040
    Rich
    Participant

      Cloverleaf 6.0 user here.  I’m using an iterate in an xlate to swap values in OBX.3.2 with OBX.3.5.  My problem is that it works in the testing tool, but cuts off the OBX segment (and the rest of the message) during use.

      Iterate Type is group, Basis is 1(0).1(0).3(0).0, and Variable is %g1

      copy 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[1] -> @HOLD

      copy 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[4] -> 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[1]

      copy @HOLD -> 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[4]

       

      Any thoughts would be greatly appreciated, and thank you in advance!

    Viewing 1 reply thread
    • Author
      Replies
      • #119041
        Jim Kosloskey
        Participant

          Curious, I would need more info. If you would like to work on this together off-line, email me.

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

        • #119042
          Alfred Cox
          Participant

            First, you don’t need the variable. The copy statements don’t overwrite the original message so all you need is this:

            copy 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[1] -> 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[4]

            copy 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[4] -> 1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[1]

             

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.