
This page provides functionality to modify the file
assignments encoded in the COBOL programs. This can be used in Converging data-files with
different assignments, Correction of Data or Printer Assignments,
or for creating/merging Directory related fields.
New
Hidden Field Use this button to create a directory related
field.
Delete
Hidden Field Use this button to delete a selected directory related
field.
Save
Modifications Use this button to save your modifications. You can change the file assignments by dragging any of
the FD definitions item from the Intermediate entry list box on to FD
definition item.
Change the FD definition to Printer Definition by dragging an FD definitions
item onto the Printer item.
Converging data-files with different assignments
COBOL Translation Toolkit will converge on the data-files
with the same ASSIGN clause. For example, it will assume all COBOL programs
specifying
SELECT sales
ASSIGN TO "\data\a-sales1" …
or
SELECT thisYearsSalesFile
ASSIGN TO "\data\a-sales1" …
are referring to the same data-file/structure. Hence,
after you have processed the first Cobol module, if you change the target
record structure for the above data file, all other subsequent Cobol
module/programs will also see that change.
Sometimes two different assignments can be actually pointing to the same data
file. For example,
SELECT thisYearsSalesFile
ASSIGN TO "C:\data\a-sales1" …
and
SELECT thisYearsSalesFile
ASSIGN TO INPUT-PARAMETER1 …
could also be pointing to the same data-files. COBOL
Translation Toolkit will not see this and needs to be told.
Correction of
Data or Printer Assignments
COBOL Translation Toolkit will assume that an FD is a
report file if its assignment is one of the following
SELECT thisYearsSalesFile
ASSIGN TO PRINT
or
SELECT thisYearsSalesFile
ASSIGN TO PRINTER
or
SELECT thisYearsSalesFile
ASSIGN TO LPT1
COBOL Translation Toolkit sometimes may assume a
Report file to be a data file or vice-versa. In such situations it needs to be
corrected by dragging any of the FD definitions on to ‘Printer
Files’ icon or ‘Data Files’ icon.
Sometimes COBOL data are split across many data-files.
Where this split represents a logical distinction between data it becomes
necessary tell COBOL Translation Toolkit that they represent the same file.
Also, when generating the target RDBMS structures, at least 1 additional field
will be required to represent the differentiation between files.
For example, assume that sales data for a given company is kept within COBOL
Sequential files in a given directory. The directory is called SALES directory
and the Cobol data files are named after the year, i.e. the SALES-DIRECTORY
contains files: year95sales.dat, year96sales.dat, year97sales.dat, … .
And the COBOL programs here expect one of these data files to be passed as an
input parameter. In converting this structure to an SQL DDL for use with an
RDB, we can define an additional field called 'SALES_YEAR' to represent this
additional directory related field. You can add data fields of the following types:
|
Fields |
|
Integer
Data Type |
|
Decimal
Data Type |
|
Character
Data Type |
|
Date
Data Type |
|
Time
Data Type |
Top
| Index | Glossary
|