Gert van der Kooij <> wrote in message news:<>.. .
> In article <>,
> says...
> > On Mon, 27 Oct 2003 18:22:03 +0100, "Ferro" <> wrote or
> > quoted :
> >
> > >Do someone know if there is some object to read
> > >a COBOL database with JDBC?
> >
> > What the database is written in, or what program put it the data there
> > is irrelevant. You do it the same way with JDBC.
> >
>
> Ferro probably means some kind of key-sequenced file (ISAM/VSAM)
> which can be opened and read by regular COBOL definitions/statements.
> Check http://www.legacyj.com/percobol/perc_tech.html for some types
> of COBOL proprietary data types/files.
>
> AFAIK they can't be read by regular JDBC drivers.
Accessing legacy systems isn't as simple as using JDBC unless the
application is sitting over a standard database (Oracle, DB2, SQL
Server, etc). If the data is stored in a COBOL ISAM file, the only
way to get to it is through a COBOL program.
One popular approach is using a program that 'pretends' to be a user
sitting at a terminal and sends and receives data to/from the COBOL
host.
If the terminal session presents the inputs and outputs you are
looking for, you don't have to mess with writing a new COBOL program.
You might want to check out an old program called 'expect' that uses
send/expect sequences. It's kind of quaint by today's standards but
might be a starting point.
>
> Please coorect me if I'm wrong
Nope. You are correct. There are several companies that have made a
business out of integrating legacy systems with Java. Check out
AttachMate and Cleo.
FYI
Dave Monroe