I need to check all OBX segments and determine if the sub id is greater then 1. If so, I need to replace that particular segment from OBX to NTE. I will need to repeat this for any OBX segments that have sub ids greater then 1. I understand or believe that I will need to use an iterate as well, but am not too sure how to do this either.
When I attempted to do this with the first step, using an IF statement :
1(0).OBX.00572 > 1
I encountered the error:
[0:TEST] Unrecognized field name ‘Can’t locate segment in path. 1’
[0:TEST] IF expression parse failed: Value references must yield exactly one datum Error occurred at: ‘1’
Any assistance would be greatly appreciated. If anyone has done anything like this please advise or attach sample code for this request.
Thanks
FJ