multipleOBX without iterate counter-add counter, append OBX

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf multipleOBX without iterate counter-add counter, append OBX

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

        ITERATE over the OBX assume %g1 as ITERATE Counter/Variable .

        Use a MATH Add Xlate Action with:

        $%g1

        =1

        as Source

        The OBX-1 field as Destination.

        Since the ITERATE Counter is based at zero but you want the Set ID based at one you can simply add one to the ITERATE Counter an get the result you want. That is what the MATH ADD is doing. Using a $ in front of the counter in the Source makes the counter referenceable by Xlate Actions.

        To add repetitions not included in the repeating inbound, I would recommend using your own counter – something like %g99 which then you will need to manage.

        You can COPY the value of the ITERATE Counter (%g1) to your counter (let’s say %g99) again using the $ technique explained above. Then use %g99 on the Destination address paths (and also use it in the same way as you did %g1 to get the OBX-1 Set ID).

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

      • #79872
        Ganesan Murali
        Participant

          thanks; Iterate counter works.

          But How do we add two hard coded set of OBX’s (2) I can add in the end of original OBX

        • #79873
          Keith McLeod
          Participant

            Using %g99 from Jim’s response, keep count inside the iterate.  This counter gets predominantly used on the destination side.

            Lets say your iterate basis is 0 and your variable is %g1.  Your counter variable we will say is %g99

            copy =0 –> $%g99

            Iterate Group with basis 0 and variable %g1

              math add $%g1 and =1  –> 0(%g99).OBX(0).#1

              copy 0(%g1).OBX(0).#2 –> 0(%g99).OBX(0).#2

              copy $%g1 –> $%g99

            math add $%g99 and =1 –> $%g99

            math add $%g99 and =1 –> 0(%g99).OBX(0).#1

            copy =CULTURE FINDING –> 0(%g99).OBX(0).#5

            math add $%g99 and =1 –> $%g99

            math add $%g99 and =1 –> 0(%g99).OBX(0).#1

            copy =FOLLOWUP –> 0(%g99).OBX(0).#5

            Use your path, the pattern should be similar…. Notice where %g1 is used vs %g99.  Hope this helps…

          • #79874
            Ganesan Murali
            Participant

              Thanks Keith & Jim. I couldn’t make it success adding additional OBX’s.

              Please find attached the xlt, format, and sample message.

              Please help; i’m new to this QDX.  Thanks in advance.

            • #79875
              Jim Kosloskey
              Participant

                Ganesan,

                email me (not PM) and I will assist you off-line.

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

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