Supported data types

The elements in the ComIbmDni folder are described by their cardinality and values. Each value is of a specific data type. The default data type is string. All other data types must be specified explicitly.

Table 1 shows the IBM® Integration Bus data types that FTM SWIFT supports. Table 2 shows the additional data types that FTM SWIFT supports.

Table 1. IBM Integration Bus data types
Data type Value
string Any sequence of characters, excluding < and &.

This is the default data type.

boolean TRUE or FALSE.
bin.hex Hexadecimal digits representing octets.
i1 A number, expressed using the digits 0 - 9, with an optional sign and without fraction or exponent. It must be in the range -128 - 127.
i2 A number, expressed using the digits 0 - 9, with an optional sign and without fraction or exponent. It must be in the range -32 768 to 32 767.
i4 A number, expressed using the digits 0 - 9, with an optional sign and without fraction or exponent. It must be in the range -2147483648 - 2147483647.
i8 A number, expressed using the digits 0 - 9, with an optional sign and without fraction or exponent. It must be in the range -9223372036854775808 - 9223372036854775807.
int A number, expressed using the digits 0 - 9, with an optional sign and without a fraction or exponent. It must be in the same range as i8. If the sender does not want to associate a particular precision with the element, this data type can be used instead of one of the other data types that begin with i..
r4 A floating point number, expressed using the digits 0 - 9, with an optional sign, optional fractional digits, and an optional exponent. Unless it is zero, its magnitude (absolute value) must be in the range 1.175E-37 - 3.40282347E+38.
Table 2. FTM SWIFT data types
Data type Value
date A date with the pattern yyyy-mm-dd, based on Coordinated Universal Time (UTC). Leading zeros are required, for example, 2016-01-03.

All dates in messages must use this format.

time Time with the pattern hh:mm:ss, based on Coordinated Universal Time (UTC). Leading and trailing zeros are required, for example, 06:05:00.

All times in messages must use this format.

dateTime A combined date and time with one of the following patterns:
  • yyyy-mm-ddThh:mm:ss
  • yyyy-mm-ddThh:mm:ss.nnnnnn
where:
yyyy
A four-digit number representing the year
mm
A two-digit number representing the month
dd
A two-digit number representing the day
hh
A two-digit number representing the hour
mm
A two-digit number representing the minute
ss
A two-digit number representing the second
nnnnnn
A one-digit (tenths of a second) to six-digit (microseconds) number that represents the decimal fraction of a second
All combined dates and times in messages must use this format.
duration Time interval with the pattern PdDThHmM, where:
d
The number of days
h
The number of hours (0 - 23)
m
The number of minutes (0 - 59)
For example, for 7 hours and 12 minutes:
P0DT7H12M