uCosminexus Service Platform, Basic Development Guide
This section describes description format of COBOL Library Text File that can be used in function for generating binary format definition file from COBOL Library Text File.
This function considers the usage of COBOL85 language as prerequisite. However, you can use COLBOL Library Text File described according to rules and format explained here. For details on functions and methods of COBOL85 language, see "COBOL85 language".
You can specify only fixed format (extension: other than cbf) as the COBOL Library Text File that you can use in this function. File having free format (extension: .cbf) is not supported.
COBOL Library Text File that you can use in this function conforms to the following description rules.
Description of data items such as alphabets or numbers must conform to the rules described in this point. If rules are not followed, syntax error occurs.
Writing style of data item of COBOL is as follows:
Record number {Data name|FILLER} [{PICTURE|PIC}[IS] character string] [[USAGE [IS]]{COMPUTATIONAL-3|COMP-3|COMPUTATIONAL|COMP|DISPLAY|NATIONAL}] [OCCURS integer [TIMES]]. |
Table 4-6 Characters that you can specify in PICTURE clause
No | Data type | Character that you can specify in PICTURE clause | Fraction part | Range of available digits (including fraction part) | ||
---|---|---|---|---|---|---|
Character | Digits count | |||||
1 | Alphabet | "A" | 1 | -- | 1~2,147,483,647 | |
2 | Alphanumeric | "A", "X", "9" | 1 | |||
3 | Number | External decimal format | "9" | 1 | Alphabets from "V" onwards | 1~18 |
"S", "V" | 0 | |||||
4 | Internal decimal format | Similar to external decimal format | ||||
5 | Binary format | "9" | 1 | N | ||
"S" | 0 | |||||
6 | Alphanumeric edition items | "A", "X", "9", "B", "0", "/" | 1 | -- | 1~2,147,483,647 | |
7 | Number edition items | "B", "/", "Z", "0", "9", ",", ".", "*", "+", "-" currency edition character | 1 | N | 1~249 | |
"CR", "DB" | 2 | |||||
"V" | 0 | |||||
8 | Japanese item | "N" | 2 | -- | 2~32,766 | |
9 | Japanese edition item | "N", "B" | 2 |
The currency edition character or edition character such as "Z", or "0" that you specify in PICTURE clause is used only with the purpose of calculating the digits count. Edition function for embedding currency edition character in data item is not supported.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.