Electronic Data Interchange
The Interchange Trailer (UN/EDIFACT)

The Interchange Trailer ends transmission of an interchange.  It contains:

This topic covers:

 

Interchange Trailer in a document

In the document the interchange trailer is identifier by it segment identifier "UNZ" followed by the data element separator.

The interchange trailer data stream fit into the implementation guideline defined for the interchange trailer as follows:

REF ELE NAME REQ TYPE MIN/MAX VALUE COMMENT
01 0036 Interchange Control Count M N 1/6 1 This value indicates the number of messages that are enveloped by the interchange at the time that it was prepared.
02 0020 Interchange Control Reference M AN 1/14 1 This is the control number that associates the interchange trailer with its interchange header pair that has a matching control number.

 

Programmatically Reading the Interchange Trailer

The following steps demonstrates how to read the interchange trailer.

Programmatically Generating the Interchange Trailer

The following steps demonstrates how to generate the interchange header.