I was able to modify my variant so that it I did not have repeating OBX segments within multiple groups.
Then it was just a matter of getting the Iteration variables within the correct basis place holders. Also I want to thank you for setting me straight about adding a Group or other variable within the basis declaration of a nested iteration. I was confused from reading other statements if that could be done or not.
I was having a difficult time with my compound if statement so I changed to running OBX 18 through a table and changing the outbound side based one the value of the inbound and if not in the table then just retain the original value of OBX18.
You may be under the impression I work for Infor supporting Cloverleaf. I do not. I am an Integration Architect/Engineer for M. D. Anderson Cancer Center in Houston Texas but like many others on this forum I help out when I can.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.