Skip to main content
Support

KB Article #56916

separators EDI/X12 - attribute to customize the EDI/X12 separators in a map-stage?

Problem

-- When processing a hierrarchical message(X12, EDI), the separators of the output are different than expected


Resolution

* An attribute is available to define the separators used by the EDI builder in a map stage.



The Attribute name is EdiKeepSeparators.



setAttribute("EdiKeepSeparators", 1) will cause the EDI builder to use the same separators as for the input document in the map. If the attribute is not defined or it's set to any other value the default behaviour will occur. There's no point in setting this attribute if the map doesn't have an EDI input, in this case the default separators will be used.



The precendence of attributes to define the separators used by the EDI builder is the following:



a) If EdiOutputSeparators attribute is set the output separators will be taken from the EdiOutputSeparators attribute, even if EdiKeepSeparators is set. If a separator is not set in this attribute the default value will be used for that separator.
b) If EdiKeepSeparators is set to 1 the separators from the input will be used.
c) If none of the above are set the default separators will be used.