Environment COBOL, C, DB2 on Ubuntu [closed]

gnucobol and gnucc both work with Db2-LUW on ubuntu linux.

You can build and run gnucobol programs that use embedded-SQL.

You can build and run gcc programs that use embedded-SQL via the preprocessor that comes with Db2-LUW, or which use the Db2 call level interface.

Each of these products has its own set of documentation pages online.
You have to spend time studying their respective documentation.

Stackoverflow is more suitable for specific programming questions.

You will get better answers if you learn to ask better questions that:

  • show your code fragment as plain text (not an image).
  • detail the environment and versions and tools that you use
  • show the command(s) you run (as plain text)
  • show the error output (as plain text) and mention the expected result

IBM’s Db2-LUW has many example programs and simple build scripts (including for linux) that show how embedded SQL (used from C) can be used.

This was explained to you in January 2020, in answer to your previous question on the same topic.

Leave a Comment