Skip to content

About

COBOL to Python banking modernization using GitHub Copilot

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mainframe to Modern — Banking Modernization Showcase

A professional portfolio demonstrating how core banking applications can migrate from mainframe COBOL to modern Python while preserving business rules, data structure, and operational behavior.

Project Overview

This repository contains six banking programs implemented in both COBOL and Python. Each pairing illustrates a migration pattern from legacy mainframe constructs to modern equivalents, supporting validation, regression testing, and incremental modernization.

Key goals:

  • Demonstrate feature parity between COBOL and Python implementations.
  • Show how mainframe data access models map to modern storage patterns.
  • Provide runnable examples for developers, architects, and modernization teams.
  • Keep examples small, testable, and easy to extend.

Included Programs

  • loan-eligibility.cbl / loan-eligibility.py — Loan Eligibility Checker using credit score, annual income, existing obligations, requested amount, and debt-to-income rules.
  • transaction-processor.cbl / transaction-processor.py — Transaction Processor for deposits, withdrawals, transfers, and overdraft validation.
  • emi-calculator.cbl / emi-calculator.py — EMI Calculator for home, car, and personal loans with monthly schedule generation.
  • fd-calculator.cbl / fd-calculator.py — Fixed Deposit Calculator with quarterly compounding, tax deductions, and early withdrawal handling.
  • customer-verification.cbl / customer-verification.py — US Customer Verification including SSN validation, routing number checksum, account formats, and ZIP code validation.
  • db-modernization.cbl / db-modernization.py — Database Modernization showcase mapping VSAM, DB2, and IMS patterns to CSV, SQLite, and Python dictionaries.

Database Modernization Comparison

Mainframe Technology Modern Equivalent Example File
VSAM flat file CSV sequential file db-modernization.py
DB2 embedded SQL SQLite relational queries db-modernization.py
IMS hierarchical store Python nested dictionaries db-modernization.py

How to Run

From the project folder:

cd /d s:\PYTHON\mainframe-to-modern

Python examples:

py loan-eligibility.py
py transaction-processor.py
py emi-calculator.py
py fd-calculator.py
py customer-verification.py
py db-modernization.py

COBOL examples (GnuCOBOL):

cobc -x loan-eligibility.cbl -o loan-eligibility.exe
.\loan-eligibility.exe

Repeat for any other .cbl source file.

Program Usage Summary

  • Loan Eligibility Checker: Evaluate if a customer qualifies for a loan based on income and risk rules.
  • Transaction Processor: Validate and apply deposit/withdrawal/transfer operations with logging.
  • EMI Calculator: Compute monthly payments and amortization for standard loan terms.
  • Fixed Deposit Calculator: Estimate maturity value, interest earned, and early withdrawal penalties.
  • US Customer Verification: Validate SSN, routing number, account number, and ZIP code formats.
  • Database Modernization: Compare legacy data access patterns to modern file, relational, and object storage.

Technologies Used

  • COBOL (GnuCOBOL compatible examples)
  • Python 3.x (standard library)
  • SQLite (relational query demonstration)
  • Git / GitHub (version control and collaboration)
  • GitHub Copilot (development assistant)

Author

Vinay K — https://github.com/vinay-mainframe-dev


Contributions and improvements are welcome. Add new program translations, expand the database modernization showcase, or add CI test coverage for additional examples.

About

COBOL to Python banking modernization using GitHub Copilot

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages