Cobol Products
  
Home
Download
Buy
About
Contact Us
 

Cobol Tools Index
Data Viewer Index
Introduction
Features and Trial
Buy DataViewer
DataViewer Manual
Data Conversion Service
Contact Us

 
Introduction to DataViewer

Cobol Data Files Everywhere

A lot of important data collected in the last 40 years by corporations and governments resides in Cobol data files.

Today languages other than Cobol are often used for data processing and programs in these languages need to read legacy Cobol data files. Also you may want to convert Cobol data files to modern formats such as CSV, DBF, Excel, Oracle, etc.

Data Readers do just that -- they convert Cobol data files to modern formats and make it available to programs in languages such as VB, C++, Java.

Why Reading Cobol Data Is Hard

Cobol data files do not contain information about their own organization and record structure. That is, if you have just a Cobol data file and you do not have a Cobol program capable of writing or reading this file, you cannot correctly interpret the data contained in this file.

For every Cobol data file that you want to be able to read and interpret, you need the following:

  • SELECT statement for the file. It comes from the Input-Output Section of Environment Division of the program that wrote the file. This statement tells the system how the file is organized: it contains file organization, file access mode, etc.
  • FD statement for the file. It comes from the File Section of Data Division of the program that wrote the file. This statement tells the system how the file record is organized: it contains record field lengths, offsets, usages, pictures, etc.
  • The Cobol data file itself.

Even if you have all 3 components as described above, reading and interpreting the data is still difficult:

  • You need to extract SELECT and FD statements for the file from the Cobol program. Therefore you need a specialized Cobol parser that does it.
  • You need to parse the extracted SELECT and FD statements and get file and record information from these statements. Again you need an FD/SELECT statement parser and record layout builder.
  • Finally, once you have all file parameters and record layout, you need to read the actual Cobol data file and convert the record that you read to required non-Cobol format. Since some of Cobol data formats are not used by any other language or database, interpreting Cobol data is far from trivial.

Siber Systems
Copyright © 1997-2010 by Siber Systems Inc.