TEXT

Synopsis

HELP:   Read text data from memory
TYPE:   OBJECT
SYNTAX: TEXT(BLKSIZE=num,RECLENGTH=num,SUPTWS,NELDLM,CCSID='str'/DEFAULT/ASCII/EBCDIC/BOMUTF/BOMUCS/SYSTEM/LOCAL,CHRMODE=STOP/IGNORE/SUBSTITUTE/IDENTITY/TRANSLIT,SKIPEQUAL,USRTABLE='str'/NPAS/SEPA/DELA/DLAX,ONEMAP,COMBINED=NFD/NFC/AUTO/ON/OFF,BOM,KEEPBOM,ENL2LF,RPLFFD[=num],PADCHAR=num,REGEXP(),DECODE=NONE/FIODEC/CRYDEC/CMPDEC/ALWAYS,DECRYPT[{}...],TABLE(),AVSCAN())

Description

Format text operates on blocks of text data. First, the text data is converted to the UTF-8 character set. Then the text data is split into record and rest elements based on text delimiters. The data must contain a valid text delimiter within the provided record/line length. A text record contains all text between two delimiters, optionally without trailing whitespace. The optional trailing whitespace and the delimiter make up the rest element. Taken together, the record and the rest elements represent the original data.

List of valid text delimiters (Unicode codepoints):

The character data will be converted from the provided CCSID to UTF-8. If no CCSID is provided, a system dependent default CCSID is used: If available, the CCSID stored in the file system is used. If this is unset or not supported, the environment variable LANG is used. If this is also not set to a valid value, ISO-8859-1 (Latin-1) is used on ASCII and IBM-1047 (Open Systems Latin-1) on EBCDIC systems.

While text formatting, form feed characters may optionally be replaced by empty records. A padding character can be defined as special delimiter that, unlike other delimiters, is not added to the rest element after a record as it is not considered part of the original data.

Text formatting also supports:

During character conversion these options are supported:

Arguments