Pro*Cobol to Pro*C Online Presentation


Demo presentation text:

Hello and welcome to this demonstration of the Ispirer tools for Pro*Cobol to Pro*C migration. We’ll be taking a look at a product called Ispirer Migration and Modernization Toolkit.

This software is designed to be a complete solution for the automatic conversion of the applications between various platforms and programming languages.

Basically, when it comes to migrating with Ispirer, an automation rate of the code conversion rises to over 95%, considering the fact that the tool converts all parts of the program such as business logic, user interface, and reporting. The tool can also be developed further to satisfy our clients' specific requirements.

In this brief demonstration video, I’d like to show you how easy the conversion of Pro*Cobol programs to Pro*C can be performed by the Ispirer Migration and Modernization Toolkit.

The program can be converted in three ways:

- utilizing Ispirer Migration Commander. This tool is convenient for reviewing a large set of source files and the entire application when doing the conversion.

- Also, we can use Ispirer Migration Studio for the conversion. It is designed to convert the source code files or separate fragments one by one.

It visualizes the results of the conversion in a convenient way, and it is used by developers to make a quick evaluation of a particular solution in the product.

- And finally, the conversion can be performed through the command line. With this option you can, for example, set up the conversion scheduling, or even build the launch of conversion into your development process.

For this demo we have selected a Pro*Cobol program, which has the following features: it reads information from the file to connect to the database; connects to the database, makes the data reading using cursor, fills in the structure and saves it to a file.

This program consists of four files:

Cbl_Rpt_Main.pco – it is the main program file

CONNECTION file, from which the information for a database connection is read

COUNTER.cbl file, with an example of a copy block conversion.

And DeclareCursor.inc file with an example of include statements conversion.

«DemoTablesExport» folder contains information, which helps recovering the tables, used during the demo, to the Oracle database.

These are 2 files with the DDL schema of the tables, and 2 files for the insertion of the data into these tables.

Now let’s run this procedure in Cobol. This is how the Cobol terminal will look like after the execution of the program.

And this is the generated report – result of the program’s work.

Now let’s take a look on how the Cobol application can be migrated by utilizing the Ispirer Migration Commander.

After launching this tool, in its left pane we need to select the folder which contains the source files, in the right pane we have to specify the directory where all of the generated results of conversion will be sent to.

In order to begin the conversion process, we need to specify the source direction for this migration – is Pro*Cobol, and the target direction – in our case is Pro*C.

Then in the left pane we need to select the source files for conversion, and just click on the RUN button.

After the conversion, the following files will be generated:

Cbl_Rpt_Main.pc – this is a file with the Pro*C code of the source program.

Also a CustomFunctions.h file – with additional logics for converting COBOL structures, string functions, and etc.

And a project file for Visual Studio 2015.

Now let’s take a look on how the application can be migrated with the Ispirer Migration Studio.

After starting the Migration Studio, we have to open the source file of the Pro*Cobol program.

Then we need to identify the source and the target directions of migration, and click on the RUN button.

After the conversion has been completed, in the right pane we will see the converted code of this application. The source and target syntax in the Ispirer Migration Studio and Ispirer Migration Commander is highlighted for your convenience.

Now let’s run the conversion using the command line tool. We have created a file with all the necessary options.

Now let’s run this file.

As you can see, a folder with the conversion results has been generated. These results are identical to the obtained one in the Migration Commander and Migration Studio.

All of the generated files have been added to this folder, and these files are the same as we’ve seen during the migration in Ispirer Migration Commander.

Well, and the source code of these files is exactly the same, obviously.

So we can integrate this into a particular project during migration.

After the migration project has been completed, we can open our project in Visual Studio, compile it, and execute. As you can see, as a result we get the same output in the console.

And also a report file has been generated. This file is identical to the Cobol report file, and it contains the data read from the database.

Thanks for listening to this demo!

Do you want to move from Pro*Cobol to Pro*C?

Let's do it together!

Learn more