HELP: Integer-detector hints: locale, sign-convention, width, BCD variant, FRADIG TYPE: OBJECT SYNTAX: INT(LOCALE=AUTO/ISO/DE/US/ANSI/FR/CH,SIGNCONV=AUTO/LEADING/TRAILING/ZONED/NONE,WIDTH=ALL/NONE/I16/I32/I64,BCD=ALL/NONE/ZONED/PACKED,FRADIG=num)
The INT sub-object inside DETECT(HINTS(...)) carries integer-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 integer-subformat bit.
LOCALE narrows the locale set for integer detection (steers the default thousand separator). AUTO falls back to HINTS.LOCALE.
detect(hints(int(locale=DE))) -- expect 1.234.567 thousand grouping
SIGNCONV restricts which sign placements are recognised in FORMAT.STR integer detection.
detect(hints(int(signconv=LEADING))) -- only "+123" / "-123" detect(hints(int(signconv=ZONED))) -- only EBCDIC overpunch
NONE rejects all sign forms (the column must contain unsigned digits only).
WIDTH restricts which binary integer widths DETFIX probes. This is a bitmask hint: combine values to allow several widths.
detect(hints(int(width=I32))) -- only 4-byte COMP-4 detect(hints(int(width=I16))) -- only 2-byte COMP-4 PIC S9(1..4) detect(hints(int(width=NONE))) -- skip binary integer probing
BCD restricts which BCD encodings DETFIX probes for integer-typed fields. Bitmask: combine values to allow several variants.
detect(hints(int(bcd=PACKED))) -- COBOL COMP-3 only detect(hints(int(bcd=ZONED))) -- COBOL DISPLAY numeric only detect(hints(int(bcd=NONE))) -- skip BCD probing
FRADIG provides the fractional-digit count for BCD fields detected by DETFIX. DETFIX can determine whether a binary zone contains BCD data but cannot infer the number of decimal places from the raw bytes alone.
Example: a 4-byte COMP-3 field holding currency values with 2 decimal places is emitted as type.float(format.bcd(signed type=PACKED fracdigits=2)) when FRADIG=2 is set.
detect(hints(int(fradig=2 bcd=PACKED)))
NUMBER: LOCALE=AUTO/ISO/DE/US/ANSI/FR/CH - Per-INT locale override (steers thousand-separator default) [AUTO]
AUTO - All locale-conformant subformat bits set [default]ISO - ISO 8601 and ISO-derived patterns onlyDE - Germany: DD.MM.YYYY, dot decimalUS - USA: MM/DD/YYYY, comma thousandANSI - ANSI/British: DD/MM/YYYYFR - France: DD/MM/YYYY, comma decimal, space thousandCH - Switzerland: DD.MM.YYYY, apostrophe thousandNUMBER: SIGNCONV=AUTO/LEADING/TRAILING/ZONED/NONE - Sign-convention filter for FORMAT.STR integer detection [AUTO]
AUTO - All sign conventions allowed [default]LEADING - Sign before digits ('+1234' / '-1234')TRAILING - Sign after digits ('1234-') -- COBOLZONED - Zoned-Decimal sign in last-byte zone-nibbleNONE - Unsigned only -- no sign byte expectedNUMBER: WIDTH=ALL/NONE/I16/I32/I64 - Integer width hint: ALL, NONE, I16 (16-bit), I32 (32-bit), I64 (64-bit); bitmask [ALL]
ALL - Probe all integer widths: 2, 4, and 8 byte [default]NONE - Skip binary integer probingI16 - Probe 16-bit integers only (COMP-4 PIC S9(1..4), int16_t)I32 - Probe 32-bit integers only (COMP-4 PIC S9(5..9), int32_t)I64 - Probe 64-bit integers only (COMP-4 PIC S9(10..18), int64_t)NUMBER: BCD=ALL/NONE/ZONED/PACKED - BCD variant hint: ALL, NONE, ZONED (COBOL DISPLAY), PACKED (COMP-3); bitmask [ALL]
ALL - Probe all BCD variants: Zoned and Packed Decimal [default]NONE - Skip BCD probing (no decimal fields expected)ZONED - Probe Zoned Decimal only (COBOL DISPLAY numeric)PACKED - Probe Packed Decimal only (COBOL COMP-3)NUMBER: FRADIG=num - Fractional digits for detected BCD fields: 0=integer, N=emit as type.float with fracdigits=N [0]