# Conversion Formats from TIBCO Enterprise Message Service

The following tables list the supported TIBCO Enterprise Message Service data types during data transformation (mapping) performed by Substation ES.

## EMS-to-COBOL Data Types

Substation Message | EMS* | Usage | COBOL Picture | Maximum Value | Size in Bytes
--- | --- | --- | --- | --- | ---
`STRING` | `UTF8` | Alphanumeric | `PIC X(n)` |  | n
`OPAQUE` | `BYTES` | Alphanumeric | `PIC X(n)` |  | n
`I8` | `BYTE` | Alphanumeric | `PIC X` |  | 1
|  | Numeric | Field => 2 bytes |  |
`BOOLEAN` | `BOOL` | Alphanumeric | `PIC X` |  | 1
|  | Numeric | Field => 2 bytes |  |

Note: EMS* indicates TIBCO Enterprise Message Service representation for the field in the Substation ES Message Definition panel.

## EMS-to-COBOL Data Types (Numeric Fields)

Substation Message | EMS* | Usage | COBOL Picture | Maximum Value | Size in Bytes
--- | --- | --- | --- | --- | ---
`I8` | `BYTE` | `BINARY` | `S9(3) BINARY` | +127/-128 | 2
|  | `ZONED` | `S9(3) DISPLAY` |  | 3
|  | `BINARY` | `9(3) BINARY` | +127 | 2
|  | `ZONED` | `9(3) DISPLAY` |  | 3
`I16` | `SHORT` | `BINARY` | `S9(4) BINARY` | +32767/-32768 | 2
|  | `ZONED` | `S9(5) DISPLAY` |  | 5
|  | `PACKED` | `S9(5) COMP-3` |  | 3
|  | `BINARY` | `9(4) COMP-5` | + 32767 | 2
|  | `ZONED` | `9(5) DISPLAY` |  | 5
|  | `PACKED` | `9(5) COMP-3` |  | 3
`I32` | `INT` | `BINARY` | `S9(9) BINARY` | +2147483647/-2147483648 | 4
|  | `ZONED` | `S9(10) DISPLAY` |  | 10
|  | `PACKED` | `S9(10) COMP-3` |  | 6
|  | `BINARY` | `9(9) COMP-5` | +2147483647 | 4
|  | `ZONED` | `9(10) DISPLAY` |  | 10
|  | `PACKED` | `9(10) COMP-3` |  | 6
`U64` | `LONG` | `BINARY` | `S9(18) BINARY` | +/-999,999,999,999,999,999 | 8
|  | `ZONED` | `S9(18) DISPLAY` |  | 18
|  | `PACKED` | `S9(18) COMP-3` |  | 10
|  | `BINARY` | `9(18) BINARY` | + 999,999,999,999,999,999 | 8
|  | `ZONED` | `9(18) DISPLAY` |  | 18
|  | `PACKED` | `9(18) COMP-3` |  | 10
`F32` | `FLOAT` | `FLOAT` | `COMP-1` |  | 4
|  | `ZONED` | `S9(10)V999` |  | 13
|  | `PACKED` | `S9(10)V999` `COMP-3` |  | 7
`F64` | `DOUBLE` | `FLOAT` | `COMP-2` |  | 8
|  | `ZONED` | `S9(15)V999` `DISPLAY` |  | 18
|  | `PACKED` | S9(15)V999 `COMP-3` |  | 10

Note: EMS* indicates TIBCO Enterprise Message Service representation for the field in the Substation ES Message Definition panel.
Copyright © TIBCO Software Inc. All rights reserved.