Issue with OBX Iteration

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Issue with OBX Iteration

  • Creator
    Topic
  • #50851
    Gena Gill
    Participant

      I’m having an issue with an iteration with an OBX segment.   I need to null every iteration of OBX 11, but it’s only nulling the first iteration and leaving the rest alone.

      Here is an example of what OBX 11 looks like in the 7th iteration when I look at the message in SMAT:

      1(0).1(0).1(7).OBX(0).#11(0)  :  >V< Usually, when I’ve done iterations, the iteration count would be like this: OBX(7). I’ve tried changing the basis in several ways, each time, I get the same result where the first iteration nulls, but not the rest.  I’ve tried the basis as: 1(0).1(0).1(0).OBX 1(0).1(0).OBX 1(0).OBX When I’m copying the null, I’m copying to 1(0).1(0).1(%s1).OBX(0).#11(0).[0]. So, is this actually a group iteration instead of a segment iteration?  I tried setting this up as a group iteration, but could not get the translation to compile. Can anyone tell from this info just what I’m doing wrong? Thanks

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

          Gina,

          It appears to be a Group Iteration.

          In your ITERATE, instead of keying in the Basis, select the Group Element in the Inbound Tree and then click on the ‘Copy to Basis’ button – {…} below the tree. That will enter the proper Basis in the Iterate for you.

          Although I don’t think it matters, I usually use %g for group iterations.

          Then don’t forget to place your Iteration counter in the proper place in the inbound address path as well as the outbound address path  for each field, etc. that you work on inside the ITERATE.

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

        • #67770
          Gena Gill
          Participant

            Thanks

            That did it!

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