Electronic Data Interchange
The Group Trailer (UN/EDIFACT)

The Group Trailer ends transmission of the group envelope.  It contains:

This topic covers:

 

Group Trailer in a document

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

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

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

 

Programmatically Reading the Group Trailer

The following steps demonstrates how to read the group trailer.

Programmatically Generating the Group Trailer

The following steps demonstrates how to generate the group header.