HeaderMainTrailer
NM1~CLM~XYZ~XYZNM1~CLM~XYZ
rec 1 nm1 values1, clm values1, xyz values1rec 1 nm1 values1, clm values1, xyz values2rec 2 nm1 values2, clm values2, xyz values2
rec 1 values1rec 2 values1
rec 1 values1rec 2 values1
rec 1 values1rec 1 values2rec 2 values1
You probably have figured the EDI format is similar in terms of the complex hierarchical structures it can represent like the XML format. Therefore it is impossible to represent an EDI input file just as header - main - trailer because it is not that simple.
Let me repeat every repeating (looping) segment is setup to have separate output. The question I have for you is are you trying to relate two separate looping segments and get a joined view which combines the two repeating segments into one view? If that is the case, I would recommend you investigate the special segid attribute definition. When defined , there will be additional column which will contain unique identifier of the current segment . You can use this identifier in combination with the standard merge join transformation to create a common view of two or more repeating segments. Give it a try.
In the UI, after receiving long hour glass on each change - data type & size/length.