TXT

Synopsis

HELP:   Format elements as text data with delimiters
TYPE:   OBJECT
SYNTAX: TXT(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,RPLTAB/RPLHTB[=num],RPLVTB[=num],RPLBSP,RPLCTR=SPACE/SUBSTITUTE/DELETE,SUPTWS,BUFSIZ=num,INICNT=num,REGEXP())

Description

The object "format text" formats text elements into text records with a certain delimiter, no delimiter (mainly useful for record-oriented systems) or produces the original data (concatenate the text element with the corresponding rest element).

To add the delimiter in the correct encoding the charset must be known and can be defined. But normally the charset is already known through the read operation and it is not required to specify this value.

You can replace horizontal and vertical tabs by whitespace characters and new records so that the data looks like it was printed. Additionally, all remaining control characters can be suppressed or replaced by whitespace or the substitution character. This features are useful to convert text data containing tabs and other control characters for host data sets.

The method ORIGINAL uses the original delimiter that is present in the input data. If the option suppress trailing whitespace is used, then all whitespace characters in front of the original delimiter are removed.

Regular expressions can be used to validate text records or perform replacements to manipulate text records.

Text formatting supports a lot of powerful features which can be accessed with the parameters below.

Arguments