HELP: Write 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,CHRSET=SYSTEM/ASCII/EBCDIC/LOCAL,ALIGN=num)
This object is used to write a length field in front of every cell's data.
An alignment can be used to pad each cell to the next multiple of the specified byte count, so that the next column starts at a pre-defined offset. The bytes in between are padded with binary zeros.
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 - Adds 4 byte binary length fields: Little endian integer, length inclusive
L4X - Adds 4 byte binary length fields: Little endian integer, length exclusive (ZIP)
B4I - Adds 4 byte binary length fields: Big endian integer, length inclusive
B4X - Adds 4 byte binary length fields: Big endian integer, length exclusive (USS)
S4I - Adds 4 byte binary length fields: System endian integer, length inclusive
S4X - Adds 4 byte binary length fields: System endian integer, length exclusive (VAR)
HLI - Adds 4 byte binary length fields: Little endian short (LL00), length inclusive
HLX - Adds 4 byte binary length fields: Little endian short (LL00), length exclusive
HBI - Adds 4 byte binary length fields: Big endian short (LL00), length inclusive (MVS)
HBX - Adds 4 byte binary length fields: Big endian short (LL00), length exclusive
HSI - Adds 4 byte binary length fields: System endian short (LL00), length inclusive
HSX - Adds 4 byte binary length fields: System endian short (LL00), length exclusive
L2I - Adds 2 byte binary length fields: Little endian integer, length inclusive
L2X - Adds 2 byte binary length fields: Little endian integer, length exclusive
B2I - Adds 2 byte binary length fields: Big endian integer, length inclusive
B2X - Adds 2 byte binary length fields: Big endian integer, length exclusive
S2I - Adds 2 byte binary length fields: System endian integer, length inclusive
S2X - Adds 2 byte binary length fields: System endian integer, length exclusive (VARCHAR)
S1I - Adds 1 byte binary length fields: Length inclusive
S1X - Adds 1 byte binary length fields: Length exclusive
D1I - Adds 1 byte decimal length fields: Length inclusive
D2I - Adds 2 byte decimal length fields: Length inclusive
D3I - Adds 3 byte decimal length fields: Length inclusive
D4I - Adds 4 byte decimal length fields: Length inclusive
D5I - Adds 5 byte decimal length fields: Length inclusive
D6I - Adds 6 byte decimal length fields: Length inclusive
D7I - Adds 7 byte decimal length fields: Length inclusive
D8I - Adds 8 byte decimal length fields: Length inclusive
D9I - Adds 9 byte decimal length fields: Length inclusive
D0I - Adds 10 byte decimal length fields: Length inclusive
D1X - Adds 1 byte decimal length fields: Length exclusive
D2X - Adds 2 byte decimal length fields: Length exclusive
D3X - Adds 3 byte decimal length fields: Length exclusive
D4X - Adds 4 byte decimal length fields: Length exclusive
D5X - Adds 5 byte decimal length fields: Length exclusive
D6X - Adds 6 byte decimal length fields: Length exclusive
D7X - Adds 7 byte decimal length fields: Length exclusive
D8X - Adds 8 byte decimal length fields: Length exclusive
D9X - Adds 9 byte decimal length fields: Length exclusive
D0X - Adds 10 byte decimal length fields: Length exclusive
NUMBER: CHRSET=SYSTEM/ASCII/EBCDIC/LOCAL - Character set for decimal digits [auto]
SYSTEM - Use default system code page
ASCII - Use ASCII (UTF-8) code page
EBCDIC - Use EBCDIC code page
LOCAL - Use real local code page
NUMBER: ALIGN=num - Align data to the next multiple of this value in bytes [1 (no alignment)]