For Programmers: Free Programming Magazines  


Home > Archive > Cobol > October 2006 > read/import a COBOL database









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author read/import a COBOL database
Lorenzo Bettini

2006-10-12, 6:55 pm

Hi

I don't program in COBOL, but I need to read (and possibly convert in
some text format, e.g., tab separated) a COBOL archive/database, of
which I ignore the structure.

Is it possible to do this somehow?

many thanks in advance
Lorenzo

--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| Home Page : http://www.lorenzobettini.it |
| http://tronprog.blogspot.com BLOG |
| http://www.purplesucker.com Deep Purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
| http://www.lorenzobettini.it/software/gengen |
| http://www.lorenzobettini.it/software/doublecpp |
+-----------------------------------------------------+
Heybub

2006-10-12, 6:55 pm

Lorenzo Bettini wrote:
> Hi
>
> I don't program in COBOL, but I need to read (and possibly convert in
> some text format, e.g., tab separated) a COBOL archive/database, of
> which I ignore the structure.
>
> Is it possible to do this somehow?
>


Sure, but there is no such thing as a "COBOL database." COBOL can write
files in any format. There are some file structures that are compiler
dependent, used for internal processes.

If you have one of these internal formats (usually ISAM and its relatives),
you are better off by having a COBOL programmer write you a back-pocket
program to copy the file to a form you can understand. This new program will
take less than an hour to code and test (more like ten minutes).


Frederico Fonseca

2006-10-12, 6:55 pm

On Wed, 11 Oct 2006 10:35:01 -0500, "Heybub" <HeybubNOSPAM@gmail.com>
wrote:

>Lorenzo Bettini wrote:
>
>Sure, but there is no such thing as a "COBOL database." COBOL can write
>files in any format. There are some file structures that are compiler
>dependent, used for internal processes.
>
>If you have one of these internal formats (usually ISAM and its relatives),
>you are better off by having a COBOL programmer write you a back-pocket
>program to copy the file to a form you can understand. This new program will
>take less than an hour to code and test (more like ten minutes).
>

This assuming that the FD's of the files are available, and also that
the record layout (if not the same as the FD's) is also available.


Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com