STR

Synopsis

HELP:   String-detector hints: policy + default CCSIDs for ASCII/EBCDIC emission
TYPE:   OBJECT
SYNTAX: STR(POLICY=AUTO/STRICT_ASCII/ALLOW_UTF8/ALLOW_CTRL,DEFASC='str'/DEFAULT/ASCII/EBCDIC/BOMUTF/BOMUCS/SYSTEM/LOCAL,DEFEBC='str'/DEFAULT/ASCII/EBCDIC/BOMUTF/BOMUCS/SYSTEM/LOCAL)

Description

The STR sub-object inside DETECT(HINTS(...)) carries string-detector filters that restrict the type detector at bit-setting time. All hints are optional; omitting them keeps the detector at its default, which sets every plausible string-policy bit.

Charset / control-byte policy

POLICY selects how the string detector reacts to non-ASCII bytes and control characters.

AUTO -- detector sets every plausible bit; picker decides STRICT_ASCII -- restrict to plain 7-bit ASCII (strict text fields) ALLOW_UTF8 -- allow valid UTF-8 sequences in the string body ALLOW_CTRL -- allow ISO-control bytes (binary-flavoured strings)

Use STRICT_ASCII for legacy data that must be re-rejected when any non-ASCII byte appears:

detect(hints(str(policy=STRICT_ASCII)))

Use ALLOW_UTF8 for modern Unicode-bearing input where embedded multi-byte sequences should be accepted as-is.

Default CCSIDs for column emission

DEFASC and DEFEBC specify the CCSID emitted in the format.str() clause of detected ASCII-/EBCDIC-typed string columns. When unset the platform default applies (FL_DEFAULT_ASCII_CCSID / FL_DEFAULT_EBCDIC_CCSID environment variables, or the built-in fallbacks ISO-8859-1 / IBM-1047).

detect(hints(chrset=ASCII str(defasc='ISO-8859-15'))) detect(hints(chrset=EBCDIC str(defebc='IBM-1141'))) -- German EBCDIC

DEFASC/DEFEBC apply only when the corresponding charset is detected or forced via HINTS.CHRSET; otherwise the platform default applies.

Arguments