Component Element Separator showing ">" instead of "\"

Comments

1 comment

  • Avatar
    Don Zoeggerle

    All separators need to be set in the Separators object passed in to the ISA writer:

    var isa = new ISA();
    // construct the interchange header ...

    var newSeparators = new Separators(
    '\n',
    Separators.X12.ComponentDataElement,
    Separators.X12.DataElement,
    null,
    null);

    writer.Write(isa, newSeparators);

    You can't set the separators in the ISA segment itself (ISA 11, ISA 16 and ISA 17) because they will be discarded and either the default values for X12 or the specified separators will be applied.

    0
    Comment actions Permalink

Please sign in to leave a comment.