HELP: Read a data field prefixed with a length field TYPE: OBJECT SYNTAX: LFD(LENFMT=L4I/L4X/B4I/B4X/S4I/S4X/HLI/HLX/HBI/HBX/HSI/HSX/L2I/L2X/B2I/B2X/S2I/S2X/S1I/S1X/D1I/D2I/D3I/D4I/D5I/D6I/D7I/D8I/D9I/D0I/D1X/D2X/D3X/D4X/D5X/D6X/D7X/D8X/D9X/D0X,AWLEOD,ALIGN=num)
This object is used to read a column with data that is prefixed with a length field. A limit for the maximum length and/or an alignment of this element can be set for better format detection.
NUMBER: LENFMT=L4I/L4X/B4I/B4X/S4I/S4X/HLI/HLX/HBI/HBX/HSI/HSX/L2I/L2X/B2I/B2X/S2I/S2X/S1I/S1X/D1I/D2I/D3I/D4I/D5I/D6I/D7I/D8I/D9I/D0I/D1X/D2X/D3X/D4X/D5X/D6X/D7X/D8X/D9X/D0X - Format of the length field [S2X (VARCHAR)]
L4I - Parse binary 4 byte length fields: Little endian integer, length inclusive
L4X - Parse binary 4 byte length fields: Little endian integer, length exclusive (ZIP)
B4I - Parse binary 4 byte length fields: Big endian integer, length inclusive
B4X - Parse binary 4 byte length fields: Big endian integer, length exclusive (USS)
S4I - Parse binary 4 byte length fields: System endian integer, length inclusive
S4X - Parse binary 4 byte length fields: System endian integer, length exclusive (VAR)
HLI - Parse binary 4 byte length fields: Little endian short (LLxx), length inclusive
HLX - Parse binary 4 byte length fields: Little endian short (LLxx), length exclusive
HBI - Parse binary 4 byte length fields: Big endian short (LLxx), length inclusive (MVS)
HBX - Parse binary 4 byte length fields: Big endian short (LLxx), length exclusive
HSI - Parse binary 4 byte length fields: System endian short (LLxx), length inclusive
HSX - Parse binary 4 byte length fields: System endian short (LLxx), length exclusive
L2I - Parse binary 2 byte length fields: Little endian integer, length inclusive
L2X - Parse binary 2 byte length fields: Little endian integer, length exclusive
B2I - Parse binary 2 byte length fields: Big endian integer, length inclusive
B2X - Parse binary 2 byte length fields: Big endian integer, length exclusive
S2I - Parse binary 2 byte length fields: System endian integer, length inclusive
S2X - Parse binary 2 byte length fields: System endian integer, length exclusive (VARCHAR)
S1I - Parse binary 1 byte length fields: Length inclusive
S1X - Parse binary 1 byte length fields: Length exclusive
D1I - Parse decimal 1 byte length fields: Length inclusive
D2I - Parse decimal 2 byte length fields: Length inclusive
D3I - Parse decimal 3 byte length fields: Length inclusive
D4I - Parse decimal 4 byte length fields: Length inclusive
D5I - Parse decimal 5 byte length fields: Length inclusive
D6I - Parse decimal 6 byte length fields: Length inclusive
D7I - Parse decimal 7 byte length fields: Length inclusive
D8I - Parse decimal 8 byte length fields: Length inclusive
D9I - Parse decimal 9 byte length fields: Length inclusive
D0I - Parse decimal 10 byte length fields: Length inclusive
D1X - Parse decimal 1 byte length fields: Length exclusive
D2X - Parse decimal 2 byte length fields: Length exclusive
D3X - Parse decimal 3 byte length fields: Length exclusive
D4X - Parse decimal 4 byte length fields: Length exclusive
D5X - Parse decimal 5 byte length fields: Length exclusive
D6X - Parse decimal 6 byte length fields: Length exclusive
D7X - Parse decimal 7 byte length fields: Length exclusive
D8X - Parse decimal 8 byte length fields: Length exclusive
D9X - Parse decimal 9 byte length fields: Length exclusive
D0X - Parse decimal 10 byte length fields: Length exclusive
SWITCH: AWLEOD - Accept wrong length at the end of a row [OFF]
NUMBER: ALIGN=num - Align data to the next multiple of this value in bytes [1 (no alignment)]