Sam,
I basically did the following:
ITERATE over OBR (group 1)
ITERATE over OBX (group 2)
COPY OBX segments to outbound message
CONTINUE message when OBX iteration complete
ITERATE over outbound OBX message to clear OBX lines (group 2)
The basis for the group1 iteration in my variant is: 1(0).1 and the variable is %g1.
The basis for the group2 iteration in my variant is: 1(0).1(%g1).1 and the variable is %g2
I hope this helps.
Scott.