Menu

Porting a Fujitsu NetCOBOL project to GnuCOBOL

Peter Koch
2025-03-17
2025-03-21
  • Peter Koch

    Peter Koch - 2025-03-17

    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

     
    • Simon Sobisch

      Simon Sobisch - 2025-03-17
      1. correct, we still wait for someone to provide a configuration file :-)
        Note: this does mean checking all the options versus the documentation.

      2. 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.

       
  • Chuck Haatvedt

    Chuck Haatvedt - 2025-03-21

    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
    
     
    • Mickey White

      Mickey White - 2025-03-21

      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...

       
    • Chuck Haatvedt

      Chuck Haatvedt - 2025-03-21

      My testing of DB2 was on Windows 10..

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.