Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
EDIFACT
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Example == See below for an example of an EDIFACT message used to answer a flight ticket (FRA-JFK-MIA) availability request: {{sxhl|2=unixconfig| UNA:+.? ' UNB+IATB:1+6XPPC:ZZ+LHPPC:ZZ+940101:0950+1' UNH+1+PAORES:93:1:IA' MSG+1:45' IFT+3+XYZCOMPANY AVAILABILITY' ERC+A7V:1:AMD' IFT+3+NO MORE FLIGHTS' ODI' TVL+240493:1000::1220+FRA+JFK+DL+400+C' PDI++C:3+Y::3+F::1' APD+74C:0:::6++++++6X' TVL+240493:1740::2030+JFK+MIA+DL+081+C' PDI++C:4' APD+EM2:0:1630::6+++++++DA' UNT+13+1' UNZ+1+1' }} The UNA segment is optional. If present, it specifies the special characters that are to be used to interpret the remainder of the message. There are six characters following <code>UNA</code> in this order: * component data element separator ({{char|:}} in this sample) * data element separator ({{char|+}} in this sample) * decimal mark ({{char|.}} in this sample) * release character ({{char|?}} in this sample) * reserved, must be a space * segment terminator ({{char|'}} in this sample) With the exception of the decimal mark (see below), the special characters in the sample UNA segment above are also the default values. The component data element separator and data element separator are the "first level" and "second level" separators of data elements within a message segment. Referring to them as + and : for brevity, the + separates top-level or composite data elements, and : separates second-level data elements nested within composite data elements. Trailing empty (or null) data elements and their leading separators are omitted to reduce message size. The decimal mark is used to separate the integer from the fractional part of non-integer numbers. The optional nature of the UNA segment and the initial choice of the comma ("{{char|,}}") as the default decimal mark provide a source of common confusion. Versions 1 through 3 of the ISO 9735 syntax rules specify the comma as the default; version 4 states that the decimal mark position in the UNA segment is to be ignored and that the comma and the dot ("{{char|.}}") may be used indifferently in numeric data values. The UNB segment indicates which version of the syntax rules is in effect.<ref>''ISO 9735: 1988'' and ''ISO 9735-1:2002''</ref> Release character (analogous to the {{char|\}} in [[regular expression]]s) is used as a prefix to remove special meaning from the separator, segment termination, and release characters when they are used as plain text ("Escape character" is the equivalent North American term). Segment terminator indicates the end of a message segment. Note: The line breaks after each segment in this example have been added for readability. There are typically no line breaks in EDI data. {{code|UNH+1+PAORES:93:1:IA'|unixconfig}}- This is the message header segment which is required at the start of every message. This code specifies that the message name and version is PAORES 93 revision 1 and it was defined by the organisation IA (IATA). <code>IFT+3+NO MORE FLIGHTS'</code> - This is an "Interactive Free Text" segment containing the text "NO MORE FLIGHTS". <code>UNT+13+1'</code> - This is the message trailer segment. It indicated that the message sent contains 13 segments.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)