splitX12

The main procedure is a TPS called splitX12. By default, it splits an interchange into functional groups.

The splitX12 procedure is most commonly found in an inbound TPS, and:

  • Attaches the ISA and GS data as user-defined metadata, as a keyed list.
  • Defines the SEPCHARS metadata.
  • Generates messages that use the recovery database. This is when Use Recovery Database is enabled on the original message.

The SEPCHARS metadata field key in the message object overrides default separator characters on a per-message basis.

If the metadata field is NULL, then the defaults are used to parse or encode the message. If set, then it is a keyed list.

These keys are searched for in the Userdata metadata field:

  • FIELD
  • COMPONENT
  • REPEAT
  • ESCAPE
  • SEGMENT
  • DECIMAL