Bytes assigned for COMP-3 data
If your COBOL data is a PIC clause that is COMP-3, the number of bytes the COBOL Copybook Importer assigns to the item created in the type tree is shown in the following table:
| Number of Digits in PIC (With or Without a Sign) | Number of Bytes Assigned to Item |
|---|---|
| 1 | 1 |
| 2-3 | 2 |
| 4-5 | 3 |
| 6-7 | 4 |
| 8-9 | 5 |
| 10-11 | 6 |
| 12-13 | 7 |
| 14-15 | 8 |
| 16-17 | 9 |
| 18 | 10 |
For example, if your COBOL data is PIC S999 COMP-3, the Importer Wizard creates an item that is a 2-byte byte stream. If it is PIC S99V9, the item created in the type tree is also a 2-byte Byte Stream. If it is S99V999, the item created in the tree is a 3-byte Byte Stream.