Skip to content

qie.parseX12String

Signature: qie.parseX12String(value, element*, comp*, segDel*, encoding*)

Returns: X12 Message x12Message - the associated X12 message object

Parse the input string as X12 and return the associated message object.

Note

The return value CAN NEVER be assigned to the bound-in message object; it should be assigned to a locally declared variable.

Parameters

Type Name Description Default
String value the source string to be parsed
String element* (optional) the X12 element delimiter character *
String comp* (optional) the X12 field component delimiter character :
String segDel* (optional) the X12 segment delimiter character ~
String encoding* (optional) the character encoding for this message Source Node encoding

Example

var x12String = "ISA*00*          *00*          *ZZ*ABCCOM         *ZZ*99999999       *040315*1005*U*00401*004075123*0*P*:~\n";

var x12Message = qie.parseX12String(x12String);