Converting OBX to NTE in an xlate

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Converting OBX to NTE in an xlate

  • Creator
    Topic
  • #49997
    Gordon Wilkinson
    Participant

      Is it possible using an xlate to convert multiple OBX segments to a single OBX and multiple NTE segments?  See example below:

      OBX|1|TX|DATA1

      OBX|2|TX|DATA2

      OBX|3|TX|DATA3

      OBX|4|TX|DATA4

           TO

      OBX|1|TX|DATA1

      NTE|1|TX|DATA2

      NTE|2|TX|DATA3

      NTE|3|TX|DATA4

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

          Gordon,

          Yes it is very doable.

          Generally you need something to tell you which OBX segments are to be NTE segments, then ITERATE over the OBX (usually a group). When you detect the OBX that needs to be an NTE do the COPYs to the NTE from the OBX. You will probably need to manage your own counter for the NTEs.

          If you want to chat directly about this, email me directly.

          Thanks,

          Jim Kosloskey

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

        • #64443

          It can also be done in a tcl script. Sometimes that’s “easier”.

          -- Max Drown (Infor)

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