Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need help installing GNUCOBOL 3.2

Need help installing GNUCOBOL 3.2

Need help installing GNUCOBOL 3.2

I was able to install a 2.0 version of GNUcobol using a simple "opencobolide.exe" file but I can't seem to figure out how to get the latest 3.2 version installed over it. There are some limitations in the 2.0 version where important COBOL functions have not been implemented (multiple alternate keys - split keys etc.). I have downloaded gnucobol-3.2_win.7z, extracted it and it creates pretty much the same directories but it does not have a cobc.exe file in it. I have seen articles about having to "make" or "configure" the compiler, but it is pretty involved and not completely clear exactly how this all will update my current version in Windows 10,or what steps I am required to do (not simple). I have also gone down a rabbit hole with a "mingw" set of instructions that was pretty involved with not much success either. Is there a simple opencobolide.exe for windows with all of components ready to go, or a simpler set of instructions to use for the installation of the gnucobol-3.2_win.7z for windows that I downloaded. Thanks for any help you can offer.

RE: Need help installing GNUCOBOL 3.2

Hi RichL32,
As you already found out, the archive gnucobol-3.2_win.7z you downloaded, does not contain binaries, but only sources which you have to compile (e.g. using MinGW).
I searched in Google for binaries and found this Arnold Trembley’s website.
There are lots of packages there. I only downloaded these two archives
and looked inside, to see that both contain the windows executable cobc.exe
Try one of them out, or both, or other package from the site above.
Unfortunatelly I couldn't try it myself now, as I'm momentary on Linux PC.
If any problems, post them here and I will look at it, as soon as I will have Windows PC by my hands.

RE: Need help installing GNUCOBOL 3.2

WOW! Thank you for the quick and perfect response to my issue. I installed (copied) the 64bit unzipped files over my existing files and it worked beautifully! I got rid of the "not Implemented" errors, so I can continue to work on converting my programs with the 3.2 version. Thank you so much Microm! You saved the day.

RE: Need help installing GNUCOBOL 3.2

Hi RichL32,
and which of the packages from the web site you have used to install the 3.2 version ?

RE: Need help installing GNUCOBOL 3.2

I installed the GC32M-BDB-x64.7z version and it worked perfectly. Thank you again mikrom.

RE: Need help installing GNUCOBOL 3.2

Hi RichL32,
You are welcome.

As you suggested, I updated compiler on my OpenCobolIDE on Windows too.

RE: Need help installing GNUCOBOL 3.2

I'm having trouble getting the cursor-up key to be recognized in my programs. I found a sample program that helped me to get the escape key to work using ENVIRONMENT variables (COB_SCREEN_ESC etc.), and the 78 level constant COB-SCR-ESC in the screenio copybook, but the COB-SCR-KEY-UP does not work. The sample program works for cursor-up, but only if you do the accept with a direct line/col reference in the command line. Do you happen to know the secret to this problem by chance? I can recode the source for direct reference but I am hoping for a simpler solution if there is one (another environment variable?). I can send you my code if it helps. I am using the special names field of "CRT STATUS IS WS-KEY-STATUS" which is defined in WS as Pic 9(4). I could not find anything useful on the web nor any potential environment variables.
Thanks in advance.

RE: Need help installing GNUCOBOL 3.2

Hi RichL32,

Momentary I cannot help you with this, as I doesn't have many experience with GNU COBOL either on Windows or Linux. I have it installed mainly to answer question in this forum. Natively I'm developer on IBM i aka iSeries aka AS/400 (e.g. see: https://pub400.com/) and have some experience of designing screens on this platform.
Despite of this your question is interesting for me and as I will have time I will look at it.
But IMO you should post this question in new thread, as it has less to do with the original topic of this thread.

RE: Need help installing GNUCOBOL 3.2

I figured it would be a new thread, but worth a shot. Thanks microm.

RE: Need help installing GNUCOBOL 3.2

Sorry to bother you, but my latest post is about: libcob: error: module ‘9DOWN.dll’ not found
I have looked at a very similar post about the problem, but it was finally resolved with the discovery of a typo in his environment variable setting.
I am wondering if my problem has something to do with the install of the newer version of GNUcobol?
As you know, I just copied the files over the previous install, but I had never gotten to the called program step in the prior version to know if it would have worked for a called program either. All this environment setup is very new to me and I also do not know what the MING32 and MING64 directories are for. The IDE has a ming32 directory underneath it and maybe it is supposed to be ming64? I did have an error pop up about not finding the default.conf file, which was in mingw64. I had to move the ming64 directories to my D:\ drive and it seemed to eliminate the error. I have a 64 bit machine. Is there possibly some other functions I needed to run to make 3.2 version work for called modules issue and libcob?

RE: Need help installing GNUCOBOL 3.2

Quote (RichL32)

All this environment setup is very new to me and I also do not know what the MING32 and MING64 directories are for. The IDE has a ming32 directory underneath it and maybe it is supposed to be ming64?
As you wrote above, you downloaded the package GC32M-BDB-x64.7z from https://www.arnoldtrembley.com/GnuCOBOL.htm which is 64-bit, so the directory should be mingw64. On the same website the 32-bit package is available too: GC32M-BDB-x32.7z

RE: Need help installing GNUCOBOL 3.2

OK, I have it working properly now. I went back to square 1 and deleted the 2.0 files, while retaining the OpenCobol IDE folder and then reinstalled the GNU V3.2 version under the IDE folder. I also reconfigured some of the settings in the IDE for compile and runtime preferences. Also, the format of the call program name seems to work with a 77 level variable that has the just the program name without the .dll in the variable.

In the call parms the name is fully defined:
Not sure if that mattered, but it works.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close