uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

4.5.2 Support to data type of COBOL Library Text File and binary format definition file

This section describes the support to data type of COBOL Library Text File before transformation and binary format definition file after transformation.

Organization of this subsection
(1) Support to element name
(2) Support to data type
(3) Support to sign of zone format/pack format numeric value
(4) Method of calculating the size of data type of COBOL

(1) Support to element name

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".

(2) Support to data type

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

Legend:
--: Corresponding item does not exist
X: Not supported in this function

(3) Support to sign of zone format/pack format numeric value

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
  • When "S" is specified in PICTURE character string: exists
  • In other cases: Do not exist
3 Type of sign Sign bit
4 Position of sign Later

(4) Method of calculating the size of data type of COBOL

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.
  • In case of 1 digit~4 digits: 2
  • In case of 5 digits~9 digits: 4
  • In case of 10 digits~18 digits: 8
Alphanumeric edition item Digits count is same.
Number edition item
Japanese item
Japanese edition item