Skip to main content

Module export

Module export 

Source
Expand description

KOBOLD.CSV.EXPORT.1 – build forensic delimited (CSV) evidence from raw COBOL records + their copybook.

CSV is a flat, tabular format: a row is a sequence of columns. That shapes the three modes:

  • Mode::Compact – a header row of leaf field NAMES, then one row PER record of decoded values. This is the classic analyst extract: ACCOUNT_NO,BALANCE,STATUS then a line per account.
  • Mode::Audit – a LONG/tall table: header field,value,pic,offset,length,raw_hex,findings, one row per (record, field). A wide row cannot carry per-field metadata, so custody data goes tall.
  • Mode::Evidence – tall like Audit, prefixed with record_hash,copybook_hash: record_hash,copybook_hash,field,value,pic,offset,length,raw_hex,findings. Hashes are sha256:-prefixed.

Numeric/alnum value rendering is IDENTICAL to kobold-json (leading-zero strip, decimal at scale, sign via zoned overpunch). A numeric field whose bytes are not valid digits emits a NUMERIC_NONDIGIT Finding – NEVER a silent coercion – and the raw_hex column preserves the byte truth regardless.

This module is independent of GnuCOBOL/libcob.

Enums§

Mode
The evidence detail level of an exported table.

Functions§

export
KOBOLD.CSV.EXPORT.1 – export records against copybook into delimited text at the given Mode under dialect d.