Cobol to java modernization Automated

Why Modernization Is Hard? – Series 1

COBOL has its own rules for calculations that are hard to replicate in newer systems. We have seen thousands of different examples where the customer is unable to match mainframe-based calculations in the new system.

Consider a simple calculation in COBOL.

"COMPUTE VAR-1 ROUNDED = ((VAR-2 * VAR-3 ) / 100 ) * (2 / 3 )" Result: -65027221.2646

Where

05 VAR-1 PIC -(8)9.9(4).

05 VAR-2 PIC S9(9)V9(4) COMP-3. VAR-2 = -987653.1200

05 VAR-3 PIC S9(4)V9(4) COMP-3. VAR-3 = 9876.1200

Using a calculator

calculator

Result: -65027871.5433

Using ChatGPT to convert to Java

Result: VAR-1 (After Compute) = -65027871.5433

chatGpt1

Summary

summary1

The examples above demonstrate the difficulty of matching COBOL calculations with a calculator, handwritten Java or the use of AI. An intimate knowledge of the rules is necessary. Or you could simplify the process by using CloudFrame!

Venkat Pillay
Venkat Pillay
Founder and CEO

Venkat is a true technology visionary, serial entrepreneur, strategist, deep generalist, and architect. With over 25 years of experience and a passion for innovation, his expertise ranges from Legacy to emerging technology and company building.

Related Posts

why-modernization-projects-fail-and-how-to-make-it-a-success-series-10

Why Modernization Projects Fail And How To Make It A Success – Series 10

When legacy modernization efforts turn into a battlefield between IT ambitions and business realities, the outcome is almost always the same: reality wins. Unfortunately, by the time reality prevails, ...

Read More Aug 27, 2024
why-modernization-is-hard-series-9

Why Modernization Is Hard – Series 9

Modernization should directly support your company's strategic goals. Whether it's entering new markets, improving customer experience, or enabling faster product development, the decision to moderniz ...

Read More Aug 21, 2024
why-modernization-is-hard-series-8

Why Modernization Is Hard – Series 8

COBOL programs often generate reports where field formatting is handled using the 'PICTURE' clause. This clause allows for complex numeric editing and formatting options in these legacy programs. Most ...

Read More Aug 14, 2024
modernization-challenges-db2-syntaxes

Modernization Challenges – Db2 Syntaxes

A common occurrence in COBOL/DB2 programs is the coding of SQL SET assignment statement. This could be used for assigning Current Timestamp, Current Date/Time and doing various Date/Time arithmetic wi ...

Read More Aug 06, 2024