joinX12

To send out a transaction set or group, the system must build up a valid X12 interchange using the joinX12 procedure.

The joinX12 procedure:

  • Examines the start of the message to determine whether it is groups or transaction sets.
  • Takes a message, a group or a transaction set, and uses the user-defined metadata to add the appropriate ISA, IEA, GS, and GE segments.

The joinX12 procedure requires:

  • The input message to have the correct user-defined metadata to populate the ISA, and optional GS, segments.
  • The correct SEPCHARS metadata to be defined.

There are no arguments, so if any metadata is missing or incorrectly formatted, an error results and the message goes to the error database. This procedure does not generate a new message. It modifies the original, if successful, so that all attributes of the original, such as the message in the recovery database, are maintained.