Convert COBOL to C#

Delivering you an intelligent and high quality result in due time!

Automated Application Conversion

Do you need to convert your COBOL application to C#? In this case, Ispirer products will be the perfect solution for your project!
Human-written code in each project has its own specifics. It may seem difficult to obtain a high level of automated conversion. With Ispirer it will be a smooth transition. The main advantage of Ispirer Toolkit is the personalization for your conversion project. As a result, you will replace the old technology with all its downsides. The outcome will be a new application without any middleware used afterwards.

How it Works

Ispirer Toolkit

Automated conversion of COBOL to C# with the help of our tool makes it possible to significantly reduce the time and expenses as compared to manual rewriting of the application. The following approach allows to ensure high quality of automated conversion:

1. Preliminary Stage

The stage is carried out to determine the current conversion level of Ispirer Toolkit. The level of conversion depends on the complexity of the source code and the requirements for the target application. You can independently perform the analysis of the source code of your COBOL application, as well as try to convert it to C# using the demo license. Besides, our experts can perform the source code analysis and provide you with examples of its conversion.
If your application is quite specific and large, we recommend to perform PoC to determine the maximum level of automated conversion of your project.
As a result, we will find out whether the customization is required or you can directly proceed to the conversion.

2. Ispirer Toolkit Customization Stage

If this stage is necessary, we will perform the customization to thoroughly prepare the toolkit for the conversion according to your project requirements. We will take a part of a representative code that amounts ussually to ~100,000 lines. The Ispirer technical team will add all the required conversion rules into the tool to achieve the highest possible level of automation or even to get a compilable result. As a delivery, we will provide conversion results of the scope of this customization. The customer will get a tailored and updated tool according to his specific project needs.

3. Use of Ispirer Toolkit

At this stage, you perform the conversion yourself. As to pricing, we apply project-based licensing. Prices depend on its scope and duration. The license includes support as well. If necessary, the conversion may be further improved even at this stage. As a result, customization requests, each of which is processed within 1-3 business days, are added to the license. Our experts will recommend the optimal number of requests considering the complexity and requirements of your project.

Ispirer Toolkit 10 Icon

Ispirer Toolkit 10
COBOL to C#
Free Demo License

Try Now

Ispirer Migration and Modernization Service (Ispirer Service)

Our experienced team can provide you with a turnkey migration service and convert your entire COBOL application to C#, delivering you a ready-to-use application in due time. Our responsibilities include not only professional analysis, assessment, performance and testing of your migration, but also services such as adding new or changing existing functionality of the application.

If you want to get an intermediate result of the converted COBOL code in the C# language, the Ispirer team will be glad to provide you with a basic migration service. As a result, you will get code that is optimized to the compilable level. Further, you will have to independently bring the application to a fully functional state in accordance with your requirements.

You are free to choose a preferred option. Nevertheless, we can provide an estimate of both the Tool and the Service, and give professional advice.

Conversion of Various COBOL Dialects

  • Micro Focus COBOL
  • Realia COBOL
  • ACUCOBOL-GT
  • COBOL-IT
  • IBM COBOL
  • Fujitsu COBOL
  • Enterprise COBOL
  • HP COBOL
  • GnuCOBOL
  • Microsoft COBOL
  • COBOL/II
  • OS/VS COBOL
  • isCOBOL
  • COBOL/400
  • ANSI COBOL
  • Hitachi COBOL

COBOL to C# Conversion Demo

Check out how Ispirer Toolkit automatically converts Transact-SQL application.


Drop us a line, if you have any business inquiries or questions regarding your COBOL conversion project. Ispirer experts will demonstrate our solutions and answer any questions you may have!

Contact us

Conversion Samples of COBOL to C#

Ispirer Toolkit analyzes all object dependencies during the conversion process and provides not only line-by-line conversion, but resolves type conversions as well. In addition, the software understands and transforms the necessary inheritance dependencies. It parses the entire source code, builds an internal tree with all the information about the objects, and uses it in the migration process.

To convert structures, we have implemented additional type conversion classes to store variable sizes to convert redefines and arrays so that they work similar to COBOL logic. For more information review the code samples below.

Common variables declaration structure conversion:

COBOLC#
  1.  
  2. 01 varlnk.
  3. 05 varlnk-1 PIC 999.
  4. 05 varlnk-2 PIC X(10).
  5. 05 varlnk-3 PIC 9(7).
  6.  
  1.  
  2. public VarlnkType Varlnk = new VarlnkType();
  3.  
  4. public class VarlnkType : Record
  5. {
  6. public IntField Varlnk_1 = new IntField(3);
  7. public StrField Varlnk_2 = new StrField(10);
  8. public IntField Varlnk_3 = new IntField(7);
  9. }
  10.  

Common REDEFINES conversion:

COBOLC#
  1.  
  2. 01 var1 PIC XXX VALUE '111'.
  3. 01 var2 REDEFINES var1.
  4. 05 vvv1 PIC 9.
  5. 05 vvv2 PIC 99.
  6.  
  1.  
  2. public StrField Var1 = new StrField(3, "111");
  3. public Var2Type Var2 = new Var2Type();
  4.  
  5. Var2.Redefine(Var1);
  6.  
  7. public class Var2Type : Record
  8. {
  9. public IntField Vvv1 = new IntField(1);
  10. public IntField Vvv2 = new IntField(2);
  11. }
  12.  

Common array conversion:

COBOLC#
  1.  
  2. 01 var5.
  3. 05 var5-occurs OCCURS 2 TIMES.
  4. 10 var5-occurs-txt PIC X(6) VALUE ' TEXT1'.
  5.  
  1.  
  2. public Var5Type Var5 = new Var5Type();
  3.  
  4. public class Var5Type : Record
  5. {
  6. public class Var5OccursType : Record
  7. {
  8. public StrField Var5OccursTxt = new StrField(6, " TEXT1");
  9. }
  10. public Var5OccursType[] Var5Occurs = (from occurs in Enumerable.Range(1, 2) select new Var5OccursType()).ToArray();
  11. }
  12.  

COBOL call chain with PERFORMs conversion:

COBOLC#
  1.  
  2. TopLevel.
  3. DISPLAY "In TopLevel. Starting to run program"
  4. PERFORM OneLevelDown
  5. DISPLAY "Back in TopLevel.".
  6. STOP RUN.
  7.  
  8. OneLevelDown.
  9. DISPLAY ">>>> Now in OneLevelDown"
  10. PERFORM TwoLevelsDown
  11. DISPLAY ">>>> Back in OneLevelDown".
  12.  
  13. TwoLevelsDown.
  14. DISPLAY ">>>>>>>> Now in TwoLevelsDown."
  15. PERFORM ThreeLevelsDown.
  16. DISPLAY ">>>>>>>> Back in TwoLevelsDown.".
  17.  
  18. ThreeLevelsDown.
  19. DISPLAY ">>>>>>>>>>>> Now in ThreeLevelsDown".
  20.  
  1.  
  2. private Compatibility CobSmplCblCompatibility;
  3. private static CobSmplCbl _instance;
  4. public static CobSmplCbl Instance
  5. {
  6. get
  7. {
  8. if (_instance == null)
  9. {
  10. _instance = new CobSmplCbl();
  11. }
  12. return _instance;
  13. }
  14. }
  15. public CobSmplCbl()
  16. {
  17. _instance = this;
  18. }
  19. public void Initialize()
  20. {
  21. CobSmplCblCompatibility = new Compatibility();
  22. CobSmplCblCompatibility.GetAllMethodsInfo(this);
  23. CobSmplCblProcedureDivision();
  24. }
  25. private void CobSmplCblProcedureDivision()
  26. {
  27. CobSmplCblCompatibility.InitializeMethodsQueue();
  28. CobSmplCblCompatibility.CallNextMethod(this, true);
  29. }
  30. private void Toplevel()
  31. {
  32. Console.WriteLine("In TopLevel. Starting to run program");
  33. CobSmplCblCompatibility.PerformThru(this, "Oneleveldown");
  34. Console.WriteLine("Back in TopLevel.");
  35. Console.ReadKey();
  36. Environment.Exit(-999);
  37. CobSmplCblCompatibility.CallNextMethod(this, true);
  38. }
  39. private void Oneleveldown()
  40. {
  41. Console.WriteLine(">>>> Now in OneLevelDown");
  42. CobSmplCblCompatibility.PerformThru(this, "TwolevelsDown");
  43. Console.WriteLine(">>>> Back in OneLevelDown");
  44. CobSmplCblCompatibility.CallNextMethod(this, true);
  45. }
  46.  
  47. private void Twolevelsdown()
  48. {
  49. Console.WriteLine(">>>>>>>> Now in TwoLevelsDown.");
  50. CobSmplCblCompatibility.PerformThru(this, "Threelevelsdown");
  51. Console.WriteLine(">>>>>>>> Back in TwoLevelsDown.");
  52. CobSmplCblCompatibility.CallNextMethod(this, true);
  53. }
  54. private void Threelevelsdown()
  55. {
  56. Console.WriteLine(">>>>>>>>>>>> Now in ThreeLevelsDown");
  57. Quickfile_sqlCompatibility.CallNextMethod(this, true);
  58. }
  59.  

Copy statement conversion:

During the conversion stage, the code from the copy files is included in the program and replaced with the appropriate copy statements, thereafter the program converts the entire code.

If statement conversion:

COBOLC#
  1.  
  2. if var3 = var4
  3. move "D" to var3
  4. else
  5. move " " to var3.
  6.  
  1.  
  2. if (string.Compare(Var3.Value, Var4.Value) == 0)
  3. {
  4. Var1.Value = "D";
  5. }
  6. else
  7. {
  8. Var3.Value = " ";
  9. }
  10.  

PERFORM UNTIL statement conversion:

COBOLC#
  1.  
  2. PERFORM UNTIL IterCount = 5
  3. ADD 1 TO IterCount
  4. END-PERFORM
  5.  
  1.  
  2. while (!(Itercount == 5))
  3. {
  4. Itercount = Itercount + 1;
  5. }
  6.  

Download Sample Code

You have just examined only a piece of the COBOL to C# conversion sample. You can download the entire application migration sample for free by filling out the form. Once you get the code sample, you will be able to:

  • Explore how well Ispirer Toolkit migrates the source code to the target technology without downloading it.
  • Analyze and compare the source sample with your code to understand which components of your application can be automatically converted using Ispirer Toolkit.
  • Run, play with and test an application containing nearly 200 lines of code.

See for yourself that Ispirer Toolkit can automatically convert not only a single piece of code, but an entire application. Most likely, complex code will require customization of the toolkit, but our experts can add new conversion rules within 3-5 business days. As a result, using Ispirer Toolkit you will get readable and maintainable code of manual conversion quality in the shortest time possible.

Snatch a totally free opportunity to see the high efficiency of Ispirer Toolkit!

Get your sample code
Enter your name.

Enter a valid e-mail address.

Select your country.

Invalid input.

Get a Quote

Ispirer Toolkit

Reach the maximum level of automation and quality of your conversion with the help of Ispirer Toolkit! Based on your requirements, the Ispirer team will process all customization requests for your COBOL to C# conversion project. We offer several types of Ispirer Toolkit licenses, among which you will find the one that is suitable for you. Each conversion project is considered and discussed separately, prices depend on its scope, duration and complexity.

Ispirer Toolkit 10 Icon

Ispirer Toolkit 10
COBOL to C#

Request a Quote

Ispirer Service

If you don't want to involve your own resources to move the COBOL application to C#, get Ispirer Migration and Modernization Service and we will deliver you an operational and high-quality end-result on time and at a reasonable price. Apart from professional Analysis, Evaluation, Performance and Testing of your migration, we also provide such services as Code Refactoring, Changing Functionality, and Adding Extra Functionality. Each conversion project is reviewed and discussed separately and the final price is a subject to negotiation.

Ispirer Migration Service

Ispirer Migration Service
COBOL to C#

Get an Estimate

Benefits You Get

100% Automation

Conversion Automation

Automation will definitely facilitate the conversion, the manual work after the process will be significantly reduced.

Flexible Pricing

Flexible Pricing

You pay for only what you need: pricing depends on the scope, complexity and duration of your conversion project.

Optimized Migration

Use of Modern Technology

You get an intelligent and maintainable code, and immediately start enjoying the benefits of new technologies.

What Our Customers Say

"Beckman Coulter provided as much of the information as we could but there was a lot of functionality that we did not know. This is where Ispirer talents became apparent as they forensically reengineered functionality."

"We are now successfully running live on the new system, with the updated PB apps. I want to express my thanks to Ispirer team. You made this project a success!!! I was happy to work with you and would highly recommend Ispirer!"

"Because of Ispirer and MnMTK, our team was able to devote its time to build the infrastructure for new Java programs instead of spending time on converting code. The produced Java code met all our maintainability, readability and performance requirements."

"This approach was very successful avoiding any confusion at the first stage, and achieved high conversion rate in the end. The project was completed successfully, they say they couldn't make it without MnMTK 2017 and excellent extension support from lspirer."

"At the onset of the engagement the Ispirer MnMTK was expanded to meet the specific requirements of our migration prior to being delivered for our use. Once this phase of the project was complete we were provided with the expanded toolkit."

"We have found the Ispirer team to be knowledgeable and responsive and we have found the tooling to be flexible enough to be easily adapted to our coding conventions."

previous arrow
next arrow
Slider

Get in touch with us!

Have questions about migration from COBOL to C#?

Contact us