COBOL, a language created 65 years ago, still powers over 70% of ATM transactions worldwide. Automated migration to Python or Java has stalled for years on fixed-point arithmetic: translating financial logic into standard float types introduced tiny cent-rounding errors that risked millions in losses.
OpenAI's specialized GPT-6.1 Sol model just delivered a major breakthrough:
- Translation accuracy jumped from 5.4% (in GPT-5.6 Sol) to 86.6% in standard mode and 97.9% with deep reasoning enabled.
- Compute costs dropped by 39%.
The model automatically maps financial math to exact decimal classes (Decimal in Python and BigDecimal in Java).
Original COBOL snippet:
COMPUTE WS-INTEREST ROUNDED = WS-PRINCIPAL * WS-RATE.
ADD WS-PRINCIPAL TO WS-INTEREST GIVING WS-TOTAL.
And the byte-accurate Python equivalent:
from decimal import Decimal, ROUND_HALF_UP
interest = (principal * rate).quantize(Decimal("0.01"), rounding=ROUND_HALF_UP)
total = principal + interest
While mainframe JCL scripts still need an engineer's oversight, the core financial logic now migrates with zero distortion.

