Adding an additional OBX segment

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Adding an additional OBX segment

  • Creator
    Topic
  • #49903
    Shaun Beckman
    Participant

    We are attempting to add an additional OBX segment in a group iterate configuration.  We need to iterate through all of the OBXs, then add an additional OBX segment that just contains static data in OBX15. We know

    this can be done utilizing the MATH function, but we have been unable to

    make this work correctly.

    We would appreciate it if someone would be willing to send us an example

    of an xlate in which you are using this functionality.

    sbeckman@riversidehealthcare.net

    Type: group

    Basis: 1(%g1).1(%g2).1

    Variable: %g3

    Thanks in advance for your help.

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

      Shaun,

      Frequently the trick here is to refer to the iteration counter in question within the MATH Action with a $ in front. Like $%g3.

      Within the field address paths you still use the counter as normal %g3.

      If you still have issues let me know either via email or on the forum.

      Jim Kosloskey

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

    • #64047
      Robert Milfajt
      Participant

      Here is an excerpt from one of our tranlations, where we are keeping our own counter within an iterate of IN1 segments, as we do not want all IN1 segments coming in to go out.  Like Jim said, just put the $ in front of the iterate variable name and you are golden.

      Code:


                     { { OP ADD }
                         { ERR 0 }
                         { IN {=1 {$%s2}} }
                         { OUT {{$%s2}} }
                         { FUNCTION ADD }
                     }

      Hope this helps,

      Robert Milfajt
      Northwestern Medicine
      Chicago, IL

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10