i have a little COBOL project that i would like to port to GnuCOBOL.
There is a package of GnuCOBOL 3.2 with GixSQL 1.20b and MinGW which i downloaded and it installed fine on my Windows10 box.
But there are some twists i have encountered:
1) there is no config file for Fujitsu NetCOBOL... although i would think i could tweak one of the existing
2) i need EXEC SQL... and GixSQL seems a little finky.
Any ideas?
Peter
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
correct, we still wait for someone to provide a configuration file :-)
Note: this does mean checking all the options versus the documentation.
What do you mean with "finky"? And which RDBMS does your SQL code target?
Side note: you may want to just go with the default options or otherwise with -std=xopen or -std=mf-strict, instead of starting by doing the complete definition now. If you find options that don't match Fuji, you can still use the matching -foption (just the name defined in the conf file) to override some options. You possibly also want to compile with --debug to get all runtime checks, or at least with -fec=data -fec=size to get most of the checks that are enabled by default on Fuji.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As to the RDBMS, if it is IBM DB2 or ORACLE DB, I think that both of them ship with a COBOL precompiler which should work fine with GNUCOBOL. I have successfully used this approach with the community version of IBM DB2.
HOWEVER due to a bug in GNUCOBOL, this does REQUIRE STATIC calls to DB2 API's.
If you are interested I have some Windows command files I used for compiling / linking GNUCOBOL with embedded SQL.
Chuck Haatvedt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Side Note: I had IBM DB2 running (with Chucks help) on Ubuntu 22.04 and Gnucobol and worked great. Then I went to Ubuntu 24.04 and it killed my system, so i installed Pop!OS and it does not support DB2. It does support other databases... So just a note, some little known versions of Linux may have issues...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Greetings!
i have a little COBOL project that i would like to port to GnuCOBOL.
There is a package of GnuCOBOL 3.2 with GixSQL 1.20b and MinGW which i downloaded and it installed fine on my Windows10 box.
But there are some twists i have encountered:
1) there is no config file for Fujitsu NetCOBOL... although i would think i could tweak one of the existing
2) i need EXEC SQL... and GixSQL seems a little finky.
Any ideas?
Peter
correct, we still wait for someone to provide a configuration file :-)
Note: this does mean checking all the options versus the documentation.
What do you mean with "finky"? And which RDBMS does your SQL code target?
Side note: you may want to just go with the default options or otherwise with
-std=xopen
or-std=mf-strict
, instead of starting by doing the complete definition now. If you find options that don't match Fuji, you can still use the matching-foption
(just the name defined in the conf file) to override some options. You possibly also want to compile with--debug
to get all runtime checks, or at least with-fec=data -fec=size
to get most of the checks that are enabled by default on Fuji.As to the RDBMS, if it is IBM DB2 or ORACLE DB, I think that both of them ship with a COBOL precompiler which should work fine with GNUCOBOL. I have successfully used this approach with the community version of IBM DB2.
HOWEVER due to a bug in GNUCOBOL, this does REQUIRE STATIC calls to DB2 API's.
If you are interested I have some Windows command files I used for compiling / linking GNUCOBOL with embedded SQL.
Side Note: I had IBM DB2 running (with Chucks help) on Ubuntu 22.04 and Gnucobol and worked great. Then I went to Ubuntu 24.04 and it killed my system, so i installed Pop!OS and it does not support DB2. It does support other databases... So just a note, some little known versions of Linux may have issues...
My testing of DB2 was on Windows 10..