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 inclusiveL4X - Adds 4 byte binary length fields: Little endian integer, length exclusive (ZIP)B4I - Adds 4 byte binary length fields: Big endian integer, length inclusiveB4X - Adds 4 byte binary length fields: Big endian integer, length exclusive (USS)S4I - Adds 4 byte binary length fields: System endian integer, length inclusiveS4X - Adds 4 byte binary length fields: System endian integer, length exclusive (VAR)HLI - Adds 4 byte binary length fields: Little endian short (LL00), length inclusiveHLX - Adds 4 byte binary length fields: Little endian short (LL00), length exclusiveHBI - 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 exclusiveHSI - Adds 4 byte binary length fields: System endian short (LL00), length inclusiveHSX - Adds 4 byte binary length fields: System endian short (LL00), length exclusiveL2I - Adds 2 byte binary length fields: Little endian integer, length inclusiveL2X - Adds 2 byte binary length fields: Little endian integer, length exclusiveB2I - Adds 2 byte binary length fields: Big endian integer, length inclusiveB2X - Adds 2 byte binary length fields: Big endian integer, length exclusiveS2I - Adds 2 byte binary length fields: System endian integer, length inclusiveS2X - Adds 2 byte binary length fields: System endian integer, length exclusive (VARCHAR)S1I - Adds 1 byte binary length fields: Length inclusiveS1X - Adds 1 byte binary length fields: Length exclusiveD1I - Adds 1 byte decimal length fields: Length inclusiveD2I - Adds 2 byte decimal length fields: Length inclusiveD3I - Adds 3 byte decimal length fields: Length inclusiveD4I - Adds 4 byte decimal length fields: Length inclusiveD5I - Adds 5 byte decimal length fields: Length inclusiveD6I - Adds 6 byte decimal length fields: Length inclusiveD7I - Adds 7 byte decimal length fields: Length inclusiveD8I - Adds 8 byte decimal length fields: Length inclusiveD9I - Adds 9 byte decimal length fields: Length inclusiveD0I - Adds 10 byte decimal length fields: Length inclusiveD1X - Adds 1 byte decimal length fields: Length exclusiveD2X - Adds 2 byte decimal length fields: Length exclusiveD3X - Adds 3 byte decimal length fields: Length exclusiveD4X - Adds 4 byte decimal length fields: Length exclusiveD5X - Adds 5 byte decimal length fields: Length exclusiveD6X - Adds 6 byte decimal length fields: Length exclusiveD7X - Adds 7 byte decimal length fields: Length exclusiveD8X - Adds 8 byte decimal length fields: Length exclusiveD9X - Adds 9 byte decimal length fields: Length exclusiveD0X - Adds 10 byte decimal length fields: Length exclusiveNUMBER: CHRSET=SYSTEM/ASCII/EBCDIC/LOCAL - Character set for decimal digits [auto]
SYSTEM - Use default system code pageASCII - Use ASCII (UTF-8) code pageEBCDIC - Use EBCDIC code pageLOCAL - Use real local code pageNUMBER: ALIGN=num - Align data to the next multiple of this value in bytes [1 (no alignment)]