Welcome to COBOL Translation and Documentation Toolkit Tutorial.

This document aims at providing you with enough information to start migration of your COBOL applications into your target language. You may like to print this page and study it in detail.

General

COBOL migration is achieved in 4 phases.

COBOL Toolkit has been organized in a set of pages (screens). Three of these pages control the above phases. Other pages are provided for confirmation and modification the produced data and logical models of the Program Modules.

Before the migration process starts you must provide the system with some general information regarding your COBOL programs (see Setup Screen). This includes information on your COBOL platform, as well as your Working and Repository directories. Once the setup information is completed you can start the migration process.

The following main screens are provided

TIPS

IDENTIFICATION. PROGRAM1.CBL
...
FD record1.
01 rec1.
03 name pic x(20).
03 Filler .
...

and in next program you have

IDENTIFICATION. PROGRAM2.CBL
...
FD record1.
01 rec1.
03 filler pic x(20).
03 address-line x(60).
...

and in next program you have

IDENTIFICATION. PROGRAM3.CBL
...
FD record1.
01 rec1.
03 filler pic x(20).
03 address-line x(60).
...

then you should process programs 1 & 2 together and 1 & 3 together. This is because the FD entry for record1 is only complete when the above combinations are processed together.

IDENTIFICATION DIVISION.
PROGRAM-ID. dataMig1 .
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
INPUT-OUTPUT SECTION.
File-control.

COPY "FD1.SL".
COPY "FD2.SL".
COPY "FD3.SL".


DATA DIVISION.
FILE SECTION.
COPY "FD1.FD".
COPY "FD2.FD".
COPY "FD3.FD".

PROCEDURE DIVISION .
START-section .
* Assume the date-of-birth variable is defined in "FD1.FD"
ACCEPT date-of-birth FROM DATE.

* Assume the logon-time variable is defined in "FD2.FD"
ACCEPT logon-time FROM TIME.

* Assume the logoff-time variable is defined in "FD2.FD"
ACCEPT logoff-time FROM TIME.

stop run .

If you create and process this file first, and then save the data-structures in the Target Data Schemas Page you can relax during the rest of the migration phase with the knowledge that all the date/time variables will actually be treated as 'Date data-type'.

Otherwise, when you process a file which does not contain ACCEPT variable FROM DATE/TIME, then in that file the variable will NOT be treated as 'date data-type' within the generated programs.

Before you start migration of your applications also see the following pages -

Current Limitations - Capabilities not supported by COBOL Toolkit.

General Properties - Additional information on treatment of some COBOL statements.

Known Bugs - Bugs known in current version.

See http://www.softwaremining.com for more up to date version of these files.


Top | Index | Glossary