Re: ACCESSING POST GRESQL DATABASE THRU MFCOBOL - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: ACCESSING POST GRESQL DATABASE THRU MFCOBOL
Date
Msg-id 303E00EBDD07B943924382E153890E5434A9BA@cuthbert.rcsinc.local
Whole thread Raw
In response to ACCESSING POST GRESQL DATABASE THRU MFCOBOL  (vajjhala chakravarthi <chakravarthivs@yahoo.com>)
List 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




pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: logging stuff
Next
From: Peter Eisentraut
Date:
Subject: Re: Building beta packaging fails ...