SDS Message Formats

          

Home
Up

 

SDS Message Formats

The following data format examples include only the text part of the message. See the following Sabre Data Source message and message breakdown.
 

 

00100472HTLAALPRPPOLCY‡ 01‰HTLDAT‡ 0F LH#24627‡ SEVEN GABLES INN‰GTETXT‡ 0‡ /GT-AGENCY NAME AND ADDRESS/‡ /GG - COMPANY NAME AND ADDRESS^ ‰GTECCC‡ 0‡ IK‡ MASTER CARD‰‰

 

Message Breakdown

Block Header 001 = SN (Sequence Number)
00472 = Msg. Cnt (Message Count)
Message Header HTLAALPRPPOLCY = Msg. ID (Message ID)
01 = Ver (Version)
Segment Name HTLDAT = SegN (Segment Name)
0 = NL (Nesting Level)
Data LH = DE (Data Element)
SEVEN GABLES INN = DE
Segment Name GTETXT = Msg. ID
0 = NL
Data /GT-AGENCY NAME AND ADDRESS = RDE (Repeating Data Element)
/GC-COMPANY NAME AND ADDRESS = RDE
Segment Name GTECCC = Msg. ID
0 = NL
Data IK = DE
MASTER CARD = DE
 

Block Header

The block header sequences the data blocks transmitted to and from client and host. When a Sabre Data Source (SDS) message belongs in multiple blocks, the block header prefaces each block with a block sequence number. This enables the receiver to reassemble the blocks into a complete SDS message.

The block sequence number is a zero-filled, right justified three-digit number. Zero-filling maintains the three-digit number. For example: if the number is 4, the zero-filling makes it 004.

The total message size is a five-digit number that is right-justified and zero-filled. In the block header for block one, this value is the total size of the SDS message across all the blocks (excluding the size of the block headers). For the rest of the blocks, this field is simply a place holder and is zero-filled.

 

Message Header

The SDS message header identifies the purpose and layout of a particular message. It consists of two fields: a fourteen-byte message identifier and a two-digit version number field.

Message Identifier

The message identifier has three separate fields

- Product code of three characters

- Requester or recipient code of three characters

- Function code of eight characters.

This logical breakdown is for information only and usually has no impact on the construction of an Application Programming Interface (API)API

Message Version

The message version is a two-digit value that starts at 01 for the first version of a message, increments through 99, and rolls back to 00 as it reaches the 100th version.

 

Message Segment

The SDS message segment is a logically grouped collection of data elements. The segment header identifies the message segment. The segment header consists of two fields, a six-character segment identifier, and a one-digit nesting level. A segment delimiter signals the start of a new segment.

Segment Identifier

The segment identifier is a six-character identifier that combines with the nesting level to uniquely identify a particular segment layout within the message. The message definition record (MDR) that corresponds to the message describes the segment.

Nesting Level

The nesting level is a one-digit value ranging from zero to nine. It represents the position of a segment placed within the previous segment (nested). An un-nested segment has a value of zero for this field. For details on segment nesting, see Nesting

NOTE An element delimiter followed by an element value must occur at least one time in the message and may occur more than one time depending on the layout of the MDR detailed segment.

 

Data Element

The data element contains the data values which are sent. In a Sabre Data Source (SDS) message, there are two types of data elements: repeating and non repeating.

Repeating Element

A repeating element is one in which multiple values transmit for a single data element. An element delimiter separates these values. An "end of repeat data delimiter" follows the last element value to signal the end of element values for the data element. The element delimiter for the next data element can safely be omitted because the "end of repeat data" signals the end of the data element. The "end of repeat data" delimiter can safely be omitted if it occurs at the end of a segment. This is because the next character is either a segment delimiter (signals the start of a new segment) or the end of message delimiter (signals the end of this SDS message).

Non-Repeating Element

A non repeating data element is a single value. Non-repeating elements do not need an element delimiter.