The International Organization
for Standardization
  
The United Nations Economic
Commission for Europe
 
 
  
Syntax 4 Part 11 > Message description > Segment clarification
  
  
  Service message type specifications - Segment clarification (4.1) 
CONTRL
  
 
 
Pos 
 
Tag
Name
S
R
 
  
 
 
CONTRL
Syntax and service report message for batch EDI
 
 
0010
 
  
Message header
A service segment starting and uniquely identifying a message. The message type code for Syntax and service report message is CONTRL.

Note:
Syntax and service report messages conforming to this document shall contain the following data in segment UNH, composite S009:

Data element  0065 CONTRL
              0052 4
              0054 1
              0051 UN
M
1
 
0020
 
  
Interchange response
A segment identifying the interchange being responded to (the subject interchange).  It also indicates interchange receipt, acknowledgement or rejection (action taken) of the UNA, UNB and UNZ segments, and identifies any error related to these segments.  It can also identify errors related to the USA, USC, USD, USH, USR, UST, or USU security segments when they appear at the interchange level.  Depending on the action code, it may also indicate the action taken on the groups, messages, and packages within that interchange.

The subject interchange shall be identified by copying its Interchange Sender, Interchange Recipient, and Interchange Control Reference data elements into the identical data elements in this segment.  An erroneous or missing UNA, UNB, UNZ, USA, USC, USD, USH, USR, UST, or USU segment may be identified.  If no segment is identified, the error relates to the complete interchange.
M
1
 
0030
 
  
SG1
UCM-SG2
A group of segments sent in response to a message or package in the subject interchange identified in the UCI segment.  This segment group shall only be used if the subject interchange does not contain groups.
C
999999
 
0040
 
  
Message/package response
A segment identifying a message or package in the subject interchange, indicating that message's or package's acknowledgement or rejection (action taken), and identifying any error related to the UNH, UNT, UNO, and UNP segments. It can also identify errors related to the USA, USC, USD, USH, USR, UST, or USU security segments when they appear at the message or package level.

A message shall be identified by copying its Message Identifier and Message Reference Number data elements into the identical data elements in this segment.  An erroneous or missing UNH, UNT, USA, USC, USD, USH, USR, UST, or USU segment may be identified.  If no segment is identified, the error relates to the complete message.

A package shall be identified by copying its Reference Identification and Package Reference Number data elements into the identical data elements in this segment.  An erroneous or missing UNO, UNP, USA, USC, USD, USH, USR, UST, or USU segment may be identified.  If no segment is identified, the error relates to the complete package.
M
1
 
0050
 
  
SG2
UCS-UCD
A group of segments sent in response to a segment containing one or more errors, and which was part of the message identified by the UCM segment in segment group 1.
C
999
 
0060
 
  
Segment error indication
A segment identifying a segment in the message, indicating that this segment contains an error, and identifying any error related to the complete segment.
M
1
 
0070
 
  
Data element error indication
A segment identifying an erroneous stand-alone, composite or component data element in the segment identified by the UCS segment in segment group 2, and identifying the nature of the error.
C
99
 
0080
 
  
SG3
UCF-SG4
A group of segments sent in response to a group in the subject interchange identified in the UCI segment.  This segment group shall only be used if the subject interchange contains groups.
C
999999
 
0090
 
  
Group response
A segment identifying a group in the subject interchange. It also indicates acknowledgement or rejection (action taken) of the UNG and UNE segments, and identifies any error related to these segments. It can also identify errors related to the USA, USC, USD, USH, USR, UST, or USU security segments when they appear at the group level. Depending on the action code, it may also indicate the action taken on the messages and packages within that group.

The group shall be identified by copying its Application Sender's Identification, Application Recipient's identification, and Group Reference Number data elements into the identical data elements in this segment.  An erroneous or missing UNG, UNE, USA, USC, USD, USH, USR, UST, or USU segment may be identified.  If no segment is identified, the error relates to the complete group.
M
1
 
0100
 
  
SG4
UCM-SG5
A group of segments sent in response to a message or package in the group identified in segment group 3.
C
999999
 
0110
 
  
Message/package response
A segment identifying a message or package in the subject interchange, indicating that message's or package's acknowledgement or rejection (action taken), and identifying any error related to the UNH, UNT, UNO, and UNP segments.  It can also identify errors related to the USA, USC, USD, USH, USR, UST, or USU security segments when they appear at the message or package level.

A message shall be identified by copying its Message Identifier and Message Reference Number data elements into the identical data elements in this segment.  An erroneous or missing UNH, UNT, USA, USC, USD, USH, USR, UST, or USU segment may be identified.  If no segment is identified, the error relates to the complete message.

A package shall be identified by copying its Reference Identification and Package Reference Number data elements into the identical data elements in this segment.  An erroneous or missing UNO, UNP, USA, USC, USD, USH, USR, UST, or USU segment may be identified.  If no segment is identified, the error relates to the complete package.
M
1
 
0120
 
  
SG5
UCS-UCD
A group of segments sent in response to a segment containing one or more errors, and which was part of the message identified by the UCM segment in segment group 4.
C
999
 
0130
 
  
Segment error indication
A segment identifying a segment in the message, indicating that this segment contains an error, and identifying any error related to the complete segment.
M
1
 
0140
 
  
Data element error indication
A segment identifying an erroneous stand-alone, composite or component data element in the segment identified by the UCS segment in segment group 5, and identifying the nature of the error.
C
99
 
0150
 
  
Message trailer
A service segment ending a message, giving the total number of segments and the control reference number of the message.
M
1
 
 
 
 
4
  
4.1
4.2
4.3
 
 
Generated by GEFEG.FX
UN D.22B Syntax
  
  
  
  
2022-12-20