# nsevent/cobol-banking-system architecture

> Architecture diagram of the GitHub repository nsevent/cobol-banking-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nsevent/cobol-banking-system
- Repository: https://github.com/nsevent/cobol-banking-system

## Overview

VAULT-CBS is a COBOL core banking system for account and customer management, transaction posting, payments, interest and fees, regulatory compliance, and batch processing. Its principal documented flow is transaction posting with automatic general-ledger entry generation; payment and compliance capabilities form distinct branches, while end-of-day and end-of-month processing coordinate documented banking tasks. The README identifies FILEIO0 as the unified indexed-file gateway. No source excerpts were provided, so relationships below are limited to those stated in the README; the statement-generation implementation path is only identified as the existing src directory.

Main entry points: [`src/EODPROC0.cob`](https://github.com/nsevent/cobol-banking-system/blob/main/src/EODPROC0.cob) (End of Day), [`src/ACHRECV0.cob`](https://github.com/nsevent/cobol-banking-system/blob/main/src/ACHRECV0.cob) (ACH Processing), [`src/EOMPROC0.cob`](https://github.com/nsevent/cobol-banking-system/blob/main/src/EOMPROC0.cob) (End of Month), [`src/GLPOST0.cob`](https://github.com/nsevent/cobol-banking-system/blob/main/src/GLPOST0.cob) (General Ledger)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_banking["Banking Operations"]
  node_cif["Customer Records<br/>[CIFMGMT.cob]"]
  node_accounts["Account Lifecycle<br/>[ACCTMGMT.cob]"]
  node_txn["Transaction Posting<br/>[TXNPOST0.cob]"]
  node_gl["General Ledger<br/>[GLPOST0.cob]"]
  node_loans["Loan Payments<br/>[LOANPMT0.cob]"]
  node_overdraft["Overdraft Management<br/>[ODMGMT0.cob]"]
  node_interest["Interest Calculation<br/>[INTCALC0.cob]"]
  node_fees["Fee Assessment<br/>[FEECALC0.cob]"]
  node_apy["APY APR Calculation<br/>[APYCALC0.cob]"]
end

subgraph group_payments["Payments"]
  node_ach["ACH Processing<br/>[ACHRECV0.cob]"]
  node_wire["Wire Transfers<br/>[WIREXFR0.cob]"]
end

subgraph group_compliance["Compliance"]
  node_ofac["OFAC Screening<br/>[OFACCHK0.cob]"]
  node_regd["Reg D Limits<br/>[REGDCHK0.cob]"]
  node_holds["Reg CC Holds<br/>[HOLDCALC0.cob]"]
  node_disputes["Reg E Disputes<br/>[DISPMGT0.cob]"]
  node_bsa["BSA AML Detection<br/>[BSACTRO.cob]"]
  node_ctr["CTR Filing<br/>[CTRFIL0.cob]"]
  node_sar["SAR Filing<br/>[SARFIL0.cob]"]
  node_dormancy["Dormancy Processing<br/>[DORMANT0.cob]"]
end

subgraph group_batch["Batch and Records"]
  node_eod["End of Day<br/>[EODPROC0.cob]"]
  node_eom["End of Month<br/>[EOMPROC0.cob]"]
  node_statements["Statement Generation"]
  node_audit["Audit Trail<br/>[AUDTLOG0.cob]"]
  node_fileio[("Indexed File Gateway<br/>[FILEIO0.cob]")]
  node_dates["Business Day Calendar<br/>[DATEUTIL.cob]"]
end

node_txn -->|"generates GL entries"| node_gl
node_ach -->|"enforces limits"| node_regd
node_ach -->|"checks dormancy"| node_dormancy
node_wire -->|"screens transfers"| node_ofac
node_loans -->|"assesses late fees"| node_fees
node_eod -->|"runs accrual"| node_interest
node_eod -->|"releases holds"| node_holds
node_eod -->|"aggregates CTRs"| node_ctr
node_eod -->|"logs activity"| node_audit
node_eod -->|"verifies trial balance"| node_gl
node_eom -->|"assesses fees"| node_fees
node_eom -->|"generates statements"| node_statements

click node_cif "https://github.com/nsevent/cobol-banking-system/blob/main/src/CIFMGMT.cob"
click node_accounts "https://github.com/nsevent/cobol-banking-system/blob/main/src/ACCTMGMT.cob"
click node_txn "https://github.com/nsevent/cobol-banking-system/blob/main/src/TXNPOST0.cob"
click node_gl "https://github.com/nsevent/cobol-banking-system/blob/main/src/GLPOST0.cob"
click node_loans "https://github.com/nsevent/cobol-banking-system/blob/main/src/LOANPMT0.cob"
click node_overdraft "https://github.com/nsevent/cobol-banking-system/blob/main/src/ODMGMT0.cob"
click node_interest "https://github.com/nsevent/cobol-banking-system/blob/main/src/INTCALC0.cob"
click node_fees "https://github.com/nsevent/cobol-banking-system/blob/main/src/FEECALC0.cob"
click node_apy "https://github.com/nsevent/cobol-banking-system/blob/main/src/APYCALC0.cob"
click node_ach "https://github.com/nsevent/cobol-banking-system/blob/main/src/ACHRECV0.cob"
click node_wire "https://github.com/nsevent/cobol-banking-system/blob/main/src/WIREXFR0.cob"
click node_ofac "https://github.com/nsevent/cobol-banking-system/blob/main/src/OFACCHK0.cob"
click node_regd "https://github.com/nsevent/cobol-banking-system/blob/main/src/REGDCHK0.cob"
click node_holds "https://github.com/nsevent/cobol-banking-system/blob/main/src/HOLDCALC0.cob"
click node_disputes "https://github.com/nsevent/cobol-banking-system/blob/main/src/DISPMGT0.cob"
click node_bsa "https://github.com/nsevent/cobol-banking-system/blob/main/src/BSACTRO.cob"
click node_ctr "https://github.com/nsevent/cobol-banking-system/blob/main/src/CTRFIL0.cob"
click node_sar "https://github.com/nsevent/cobol-banking-system/blob/main/src/SARFIL0.cob"
click node_dormancy "https://github.com/nsevent/cobol-banking-system/blob/main/src/DORMANT0.cob"
click node_eod "https://github.com/nsevent/cobol-banking-system/blob/main/src/EODPROC0.cob"
click node_eom "https://github.com/nsevent/cobol-banking-system/blob/main/src/EOMPROC0.cob"
click node_statements "https://github.com/nsevent/cobol-banking-system/tree/main/src"
click node_audit "https://github.com/nsevent/cobol-banking-system/blob/main/src/AUDTLOG0.cob"
click node_fileio "https://github.com/nsevent/cobol-banking-system/blob/main/src/FILEIO0.cob"
click node_dates "https://github.com/nsevent/cobol-banking-system/blob/main/src/DATEUTIL.cob"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cif,node_accounts,node_txn,node_gl,node_loans,node_overdraft,node_interest,node_fees,node_apy toneBlue
class node_ach,node_wire toneAmber
class node_ofac,node_regd,node_holds,node_disputes,node_bsa,node_ctr,node_sar,node_dormancy toneMint
class node_eod,node_eom,node_statements,node_audit,node_fileio,node_dates toneRose
```

## Components

### Banking Operations

- [Customer Records](https://github.com/nsevent/cobol-banking-system/blob/main/src/CIFMGMT.cob): `src/CIFMGMT.cob`
- [Account Lifecycle](https://github.com/nsevent/cobol-banking-system/blob/main/src/ACCTMGMT.cob): `src/ACCTMGMT.cob`
- [Transaction Posting](https://github.com/nsevent/cobol-banking-system/blob/main/src/TXNPOST0.cob): `src/TXNPOST0.cob`
- [General Ledger](https://github.com/nsevent/cobol-banking-system/blob/main/src/GLPOST0.cob): `src/GLPOST0.cob`
- [Loan Payments](https://github.com/nsevent/cobol-banking-system/blob/main/src/LOANPMT0.cob): `src/LOANPMT0.cob`
- [Overdraft Management](https://github.com/nsevent/cobol-banking-system/blob/main/src/ODMGMT0.cob): `src/ODMGMT0.cob`
- [Interest Calculation](https://github.com/nsevent/cobol-banking-system/blob/main/src/INTCALC0.cob): `src/INTCALC0.cob`
- [Fee Assessment](https://github.com/nsevent/cobol-banking-system/blob/main/src/FEECALC0.cob): `src/FEECALC0.cob`
- [APY APR Calculation](https://github.com/nsevent/cobol-banking-system/blob/main/src/APYCALC0.cob): `src/APYCALC0.cob`

### Payments

- [ACH Processing](https://github.com/nsevent/cobol-banking-system/blob/main/src/ACHRECV0.cob): `src/ACHRECV0.cob`
- [Wire Transfers](https://github.com/nsevent/cobol-banking-system/blob/main/src/WIREXFR0.cob): `src/WIREXFR0.cob`

### Compliance

- [OFAC Screening](https://github.com/nsevent/cobol-banking-system/blob/main/src/OFACCHK0.cob): `src/OFACCHK0.cob`
- [Reg D Limits](https://github.com/nsevent/cobol-banking-system/blob/main/src/REGDCHK0.cob): `src/REGDCHK0.cob`
- [Reg CC Holds](https://github.com/nsevent/cobol-banking-system/blob/main/src/HOLDCALC0.cob): `src/HOLDCALC0.cob`
- [Reg E Disputes](https://github.com/nsevent/cobol-banking-system/blob/main/src/DISPMGT0.cob): `src/DISPMGT0.cob`
- [BSA AML Detection](https://github.com/nsevent/cobol-banking-system/blob/main/src/BSACTRO.cob): `src/BSACTRO.cob`
- [CTR Filing](https://github.com/nsevent/cobol-banking-system/blob/main/src/CTRFIL0.cob): `src/CTRFIL0.cob`
- [SAR Filing](https://github.com/nsevent/cobol-banking-system/blob/main/src/SARFIL0.cob): `src/SARFIL0.cob`
- [Dormancy Processing](https://github.com/nsevent/cobol-banking-system/blob/main/src/DORMANT0.cob): `src/DORMANT0.cob`

### Batch and Records

- [End of Day](https://github.com/nsevent/cobol-banking-system/blob/main/src/EODPROC0.cob): `src/EODPROC0.cob`
- [End of Month](https://github.com/nsevent/cobol-banking-system/blob/main/src/EOMPROC0.cob): `src/EOMPROC0.cob`
- [Statement Generation](https://github.com/nsevent/cobol-banking-system/tree/main/src): `src`
- [Audit Trail](https://github.com/nsevent/cobol-banking-system/blob/main/src/AUDTLOG0.cob): `src/AUDTLOG0.cob`
- [Indexed File Gateway](https://github.com/nsevent/cobol-banking-system/blob/main/src/FILEIO0.cob): `src/FILEIO0.cob`
- [Business Day Calendar](https://github.com/nsevent/cobol-banking-system/blob/main/src/DATEUTIL.cob): `src/DATEUTIL.cob`

## Connections

- Transaction Posting → General Ledger: generates GL entries (evidence: `README.md`)
- ACH Processing → Reg D Limits: enforces limits (evidence: `README.md`)
- ACH Processing → Dormancy Processing: checks dormancy (evidence: `README.md`)
- Wire Transfers → OFAC Screening: screens transfers (evidence: `README.md`)
- Loan Payments → Fee Assessment: assesses late fees (evidence: `README.md`)
- End of Day → Interest Calculation: runs accrual (evidence: `README.md`)
- End of Day → Reg CC Holds: releases holds (evidence: `README.md`)
- End of Day → CTR Filing: aggregates CTRs (evidence: `README.md`)
- End of Day → Audit Trail: logs activity (evidence: `README.md`)
- End of Day → General Ledger: verifies trial balance (evidence: `README.md`)
- End of Month → Fee Assessment: assesses fees (evidence: `README.md`)
- End of Month → Statement Generation: generates statements (evidence: `README.md`)
