CONTRL Syntax and service report message for batch EDI
Syntax Development Group (SDG)
CONTRL is a message syntactically acknowledging or rejecting, with error indication, a received interchange, group, message, or package.
A CONTRL message shall be used to:
a) acknowledge or reject a received interchange, group, message, or package and list any syntactical errors or unsupported functionality contained therein, or
b) indicate only the receipt of an interchange.
Header
Position
Segment
Name
Max use
- 0010Message headerMandatoryMax 1
To head, identify and specify a message.
1. Data element S009/0057 is retained for upward compatibility. The use ofS016 and/or S017 is encouraged in preference.2. The combination of the values carried in data elements 0062 and S009 shallbe used to identify uniquely the message within its group (if used) or ifnot used, within its interchange, for the purpose of acknowledgement. - 0020Interchange responseMandatoryMax 1
To identify the subject interchange, to indicate interchange receipt, to indicate acknowledgement or rejection (action taken) of the UNA, UNB and UNZ segments, and to identify 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.
1. D5(060, 050) If first, then all2. D5(070, 060, 050) If first, then all3. D5(080, 060, 050, 090) If first, then all4. D5(090, 080, 060, 050) If first, then all5. 0135, may only contain the values UNA, UNB, UNZ, USA, USC, USD, USH, USR,UST, or USU.6. This data element shall be present when reporting an error in a securitysegment.