I am trying to renumber the OBX.1 so that it is in order since some get nulled out. My issue is that when the logic happens that is putting the OBX.1 in order is giving the null segments a number but there isn't anything in them. I just did this on another xlate that is working fine. Not sure what I've messed up with this one.
Using a standard 2.5.1 variant. Bulkcopy.
COPY: =0 ->
@obx_ctr (at the top of xlate)
The iterate for the OBX is :
Segment
4(0).OBX
%s1
There are some IF statements doing some work and a couple that will null out certain segments.
At the end of all of this, still inside the iterate I have
Math Add:
@obx_ctr =1 ->
@obx_ctrCOPY:
@obx_ctr -> 4(0).OBX(%s1).#1(0)
I'm sure it is something simple I can't see. Any help is appreciated.