Re: ACCESSING POST GRESQL DATABASE THRU MFCOBOL

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "vajjhala chakravarthi" <chakravarthivs(at)yahoo(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ACCESSING POST GRESQL DATABASE THRU MFCOBOL
Date: 2003-08-05 16:54:48
Message-ID: 303E00EBDD07B943924382E153890E5434A9BA@cuthbert.rcsinc.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

vajjhala wrote:
> HI
>
> I am running MFcobol on a linux machine which is
> having Postgresql. can I access pgsql database thru
> mfcobol.
> If it is possible where can I get odbc drivers and
> what is the procedure help me

This is probably not helpful, but FWIW I've written a driver for AcuCorp
AcuCobol that allows you to use postgres for backend storage instead of
the built in file system. The driver maps cobol file statements (read,
etc.) to postgresql queries brokers the data to cobol native types. If
you are interested I can give you more information.

This could be ported to any COBOL system if all of the following are
true:
1. Your cobol compiler allows calling of C programs via Call syntax with
parameters
2. Your compiler emits some type of parseable schema for your FD records
(would have to be adapted if different from AcuCorp's xfd syntax)
3. Your compiler allows substitution of an alternate file handler *OR*
you are willing to use CALL statements to do file I/O instead of
traditional cobol file/io statements.

It's widely thought that COBOL sucks, but when paired (properly) with a
robust SQL solution and written in a modern style it's not too bad. It
mostly depends on how well you are able to integrate legacy cobol
programs with modern tools and technologies. PostgreSQL has a number of
unique features that make it an ideal data repository for legacy COBOL
applications.

Merlin

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-08-05 17:00:16 Re: Building beta packaging fails ...
Previous Message Bruce Momjian 2003-08-05 16:54:22 Re: logging stuff