HELP: Convert a record list to one block (binary or text) of data TYPE: OBJECT SYNTAX: BLK(BUFSIZ=num,METHOD=HOST/BIN/REC/TXT/NL/USS/LF/UNIX/CR/OLDMAC/CRLF/WINDOWS/DLM/SYSTEM/ORIGINAL,CHRSET=NONE/SYSTEM/ASCII/UCS1/UTF8/EBCDIC/UCS2BE/UTF16BE/UCS2LE/UTF16LE/UCS4BE/UTF32BE/UCS4LE/UTF32LE/LOCAL,SUPTWS,RPLTAB/RPLHTB[=num],RPLVTB[=num],RPLBSP,RPLCTR=SPACE/SUBSTITUTE/DELETE)
The block converter can be used to convert records into data blocks with delimiters. On output, it can also add different length formats in front of the records or append a binary delimiter. You can also put all attributes of a record in front of the data. With CNV.REC() (opposite of CNV.BLK()) the length fields, delimiter and attributes can be parsed back. This conversion component uses the text, block and binary formatting components and provides all their features.
NUMBER: BUFSIZ=num - Initial buffer size for preallocation [65536]
NUMBER: METHOD=HOST/BIN/REC/TXT/NL/USS/LF/UNIX/CR/OLDMAC/CRLF/WINDOWS/DLM/SYSTEM/ORIGINAL - Method for block/text formatting [SYSTEM]
HOST - Adds no delimiter (HOST)
BIN - Adds no delimiter (HOST)
REC - Adds no delimiter (HOST)
TXT - Adds the system specific delimiter (DEFAULT)
NL - Adds delimiter new line (USS)
USS - Adds delimiter for USS (new line)
LF - Adds delimiter line feed (UNIX)
UNIX - Adds delimiter for UNIX (line feed)
CR - Adds delimiter carriage return (MAC)
OLDMAC - Adds delimiter for old MACs (carriage return)
CRLF - Adds delimiter carriage return line feed (WIN)
WINDOWS - Adds delimiter for WINDOWS (carriage return line feed)
DLM - Adds the system specific delimiter (DEFAULT)
SYSTEM - Adds the system specific delimiter (DEFAULT)
ORIGINAL - Adds the original data at the end of a line (only for band FMT)
NUMBER: CHRSET=NONE/SYSTEM/ASCII/UCS1/UTF8/EBCDIC/UCS2BE/UTF16BE/UCS2LE/UTF16LE/UCS4BE/UTF32BE/UCS4LE/UTF32LE/LOCAL - Character set [SYSTEM]
NONE - No character set defined
SYSTEM - SYSTEM (environment specific (on mainframe EBCDIC else ASCII))
ASCII - ASCII (mainly used in the for open system)
UCS1 - UCS-1 (for text formatting identical to ASCII < 64k)
UTF8 - UTF-8 (for text formatting identical to ASCII < 2M)
EBCDIC - EBCDIC (mainly used on IBM mainframe)
UCS2BE - UCS-2 Big Endian (multibyte character set < 64k)
UTF16BE - UTF-16 Big Endian (multibyte character set < 2M)
UCS2LE - UCS-2 Little Endian (multibyte character set < 64k)
UTF16LE - UTF-16 Little Endian (multibyte character set < 2M)
UCS4BE - UCS-4 Big Endian (multibyte character set < 64k)
UTF32BE - UTF-32 Big Endian (multibyte character set < 2M)
UCS4LE - UCS-4 Little Endian (multibyte character set < 64k)
UTF32LE - UTF-32 Little Endian (multibyte character set < 2M)
LOCAL - LOCAL (platform specific (on mainframe EBCDIC else ASCII))
SWITCH: SUPTWS - Suppress trailing whitespace [FALSE]
NUMBER: RPLTAB/RPLHTB=num - Replace horizontal tabulators by spaces using this tab width [0 = no replacement]
NUMBER: RPLVTB=num - Replace vertical tabulators by new lines using this tab width [0 = no replacement]
SWITCH: RPLBSP - Replace backspace (deletes the backspace and the byte before) [FALSE]
NUMBER: RPLCTR=SPACE/SUBSTITUTE/DELETE - Replace remaining control characters [NONE]
SPACE - Replace control characters with whitespace character (0x20/0x40)
SUBSTITUTE - Replace control characters with substitution character (0x1A/0x3F)
DELETE - Remove control characters