OBR segment counter

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf OBR segment counter

  • Creator
    Topic
  • #54826
    Andres Alvarez
    Participant

      Hello all,

      I am new to tcl and the forum.

      Scenario: Outbound ORM message with multiple ORC segments with their respective OBRs under each ORC. I have collapsed the ORC segments to one ORC. The OBRS are there. However, The SET ID for the OBRS are whatever they were preveiously. I need guiance with an ascending counter for the OBRs (OBR|1, OBR|2, OBR |3)

      Any help is appreciated.

    Viewing 2 reply threads
    • Author
      Replies
      • #83129
        Keith McLeod
        Participant

          You can make use of the variable used in the iteration that supports your OBRs with something like

          math add =1 $%g1 –> 4(0).0(%g1).ORB(0).#1.[0]

          Of course use the correct outbound path from your code…

        • #83130
          Andres Alvarez
          Participant

            Thanks Kieth. I wil give it a try. I figured there would have to be someway to use those as integers, but they didn’t teach that in the intro class.

          • #83131
            Jim Kosloskey
            Participant

              I don’t think they teach it at all – but I think it is now documented in the Help beginning with CL 6.0.0 anyway.

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

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