Preserve each dated MT940 :65: forward available balance
Repeated :65: fields give available balances for future value dates. Each amount is a position at its date, so the cash forecast should retain a dated series.
Open this sample in Air-Gapped ConverterWorked bank sample
Synthetic bank data for local reconciliation.
:20:REPORT-1
:25:EUR-OPERATING
:28C:007/1
:60F:C261130EUR100,00
:61:2611301130C25,00NTRFINV-0042//BANK-841
:86:Release in two stages
:62F:C261130EUR125,00
:64:C261130EUR100,00
:65:C261201EUR110,00
:65:C261202EUR125,00Field anatomy
| Field or path | Meaning in this file | Type or format | ERP or Excel import risk |
|---|---|---|---|
| :65: date | Effective value date | YYMMDD per occurrence | A single cell keeps only the last observation. |
| :65: amount | Forward available position | Signed currency amount | Adding 110 and 125 doubles forecast liquidity. |
Root cause and ERP fix
- A dictionary keyed by tag overwrote the first date. Store one observation per occurrence.
- The forecast added balances as inflows. Difference successive positions for the same account and currency.
- A missing date was filled with zero. Preserve the gap and verify the release schedule.
Inspect with the MIT parser
Save the sample as mt940-forward-available-balances.sta and the script as inspect.mjs. With @stmtrecon/parser installed, run node inspect.mjs mt940-forward-available-balances.sta.
import { readFile } from 'node:fs/promises';
import { inspect } from '@stmtrecon/parser';
const text = await readFile(process.argv[2], 'utf8');
const report = inspect(text, { transactions: true });
const forward = [...text.matchAll(/^:65:([CD])(\d{6})([A-Z]{3})([\d,]+)/gm)];
console.table(forward.map(m => [report.header.statementNumber, ...m.slice(1)]));Open this sample in Air-Gapped ConverterExport a multi-sheet Excel workbook with balance checks and batch reconciliation on your device. No Node installation or cloud upload is required.
npm package · SDK source · Format reference