uCosminexus Service Platform, Basic Development Guide
This section describes the support to data type of COBOL Library Text File before transformation and binary format definition file after transformation.
When optional name is set in data item of COBOL, the already set optional name serves as the element name of the binary format definition file. When optional name has not been set, data name of COBOL before transformation as it becomes the element name of the binary format definition file.
For details on setting the optional name in element name, see " 4.5.3(3) Setting up data items".
Following table describes the mapping of data type of COBOL and data type o binary format definition file after transformation.
Table 4-7 Mapping of data type of COBOL and data type of binary format definition file
No. | Data type of COBOL | Data type of binary format definition file | Data type in TP1/COBOL adapter | ||||
---|---|---|---|---|---|---|---|
Data type | Embedded character | XML schema type | |||||
1 | Alphabet | Character string | Space | string | Character string data (string) | ||
2 | Alphanumeric | Character string | Space | string | Character string data (string) | ||
3 | Number | External decimal format | Zone format numeric value | -- | decimal | Decimal data (BigDecimal) | |
4 | Internal decimal format | Pack format numeric value | -- | decimal | N | ||
5 | Binary format | Without decimal point | Signed (unsigned) binary number | -- | integer | Short data (Short) ~Long data (Long) | |
6 | With decimal point | N | Decimal data (BigDecimal) | ||||
7 | External floating decimal point | N | N | ||||
8 | Internal floating decimal point | 4 bytes | Single precision data (Float) | ||||
9 | 8 bytes | Double precision data (Double) | |||||
10 | Alphanumeric edition item | Character string | Space | string | Character string data (string) | ||
11 | Number edition item | Character string | Space | string | Character string data (string) | ||
12 | Index data item | N | N | ||||
13 | Japanese item | Character string | Space | string | Character string data (string) | ||
14 | Japanese edition item | Character string | Space | string | Character string data (string) | ||
15 | External bool item | N | N | ||||
16 | Internal bool item | N | N |
When generating zone format numeric value and pack format numeric value when transforming to data type of binary format definition file, generate when the settings of sign is in "Custom" status and perform settings in the item of simple contents element dialog. Following table describes the contents set in the item of simple contents element dialog.
Table 4-8 Setting contents of attribute
No. | Attribute | Setting contents |
---|---|---|
1 | Settings of sign | Custom |
2 | Existence of sign |
|
3 | Type of sign | Sign bit |
4 | Position of sign | Later |
Following table describes the method for calculating size (byte) of data type.
Table 4-9 Method for calculating size of data type
Data type of COBOL | Size (byte) |
---|---|
Alphabet | Digits count is same. |
Alphanumeric | |
External decimal format | |
Internal decimal format | ((Digits count) / 2) + 1 |
Binary format | Calculate from digits count.
|
Alphanumeric edition item | Digits count is same. |
Number edition item | |
Japanese item | |
Japanese edition item |
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.