The Assign To Iterator Task
The Choose Existing Iterator option allows you to take the currently selected rule/step and move it underneath a specific pre-existing Iterator. If your rule/step already belongs to an Iterator, by default this option is selected and the current parent is selected in the drop-down menu.
Note that in this case, the variable j was automatically chosen, because the wizard detected that the currently selected step is part of a parent Iterator that is already using the i index variable. We can then choose to iterate through each OBR.16 field instead of on each OBR segment:.
After selecting OK, the step will now be placed inside a new nested Iterator. You can see from the following example that OBR.16.1 is being mapped into PV1.9.1, but now it is being done for each OBR segment, and in turn for each OBR.16 field repetition.