Subscribe to keep this site alive! Under new management but as always, still 100% FREE. Anyone with the IBM i is a friend of ours.
The Challenge: Our Trading Partner is requiring us to force element separators after the last populated qualifier/qualified element pair of the LIN segment.
By default, the software skips these and goes directly to the segment separator, after the last mapped element within that segment.
The Solution: Map the element separator on the second to the last position of the required number of element separators. Override the Element Properties of this position for Data Type (Alphanumeric, from ID) as well as Minimum Size to 1 (one).
When the Data Type is ID, the value being mapped is validated against the User Element Code List. The minimum size is the minimum length of the field when something is mapped to it. Hence, by default (size 2), when we map the "element separator" (which is one-byte long), the value mapped will be padded with a blank.
Since we are mapping the element separator on the second to the last element (which is a Qualifier), the TRN0610 error is issued requiring the Qualified Element to be mapped as well.
Because we are not mapping anything on the last element. We need to Remove the Qualifier-Qualified Element Pair Relationship to overcome this error.
Do you have a new CHALLENGE? Let us know HERE.