Field Data Types
The following field data types are supported in layout based operations:
| Data Type | Description | COBOL equivalent |
|---|---|---|
| char | Defines a field which content is text. Comparison is performed by value. In case of divergent encoding of the files being compared (EBCDIC/ vs ASCII), the field with EBCDIC encoding gets converted before comparison. | PIC X(l) |
| binary | Defines a field which content is binary data. Comparison is performed at binary level. No conversion is performed. | PIC X(l) |
| integer | Defines a 2, 4 or 8 bytes long integer field. The attributes signed and endian affect its definition. The field is always compared by value, so to managed diverging endian representations | PIC [S]9(l*2) COMP |
| zoned | Defines a field which content is zoned data. The attributes signed affects the management of the last semi-byte. | PIC [S]9(l) |
| packed | Defines a field which content is packed data. The attributes signed affects the management of the last semi-byte. | PIC [S]9(l*2-1) COMP-3 |
| dbcs | Defines a field which content is Non-shifted DBCS data. | PIC G(l) DISPLAY-1 |
| mixed | Defines a field which content is mixed SBCS/DBCS (shifted/SOSI) data. | PIC X(l) |
| float | Defines a field which content is a 4 bytes Floating Poaint number, either as IBM 370 or IEEE 754 | USAGE IS COMP-1 |
| double | Defines a field which content is a 8 bytes Floating Poaint number, either as IBM 370 or IEEE 754 | USAGE IS COMP-2 |