where is Cobol.exe???

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
akashraog
Posts: 6
Joined: Fri Dec 26, 2008 6:10 am

where is Cobol.exe???

Post by akashraog »

I am a new used of Zeus Tool.

I would be using Zeus for for learing and upgrading myself as a cobol programmer....

However when i tried compiling a basic program, it gave me an error saying COBOL.EXE not found. When i search my harddisk to see where cobol.exe is saved. it gave me ZERo results.

Doesn't ZEUS provide the cobol.exe with the package.

regards,
Akash
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Doesn't ZEUS provide the cobol.exe with the package.

Zeus does not come with a COBOL compiler. You first need to install one of the many COBOL compilers available and then configure Zeus to point to that compiler.

For example here are some links to a few COBOL compiler options:

http://www.oevelen.com/eng/cobol/lang/index.html
http://www.thefreecountry.com/compilers/cobol.shtml

Cheers Jussi
akashraog
Posts: 6
Joined: Fri Dec 26, 2008 6:10 am

Post by akashraog »

Thanks buddy!!!!

Can you suggest one compiler which can be used with Windows Vista?

Also can you list the ones which you have used on other plateforms...

Thanks.
Akash
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

GNU Cobol Setup
Details on how to use the GNU Cobol compiler from inside Zeus can be found here: http://www.zeusedit.com/zforum/viewtopic.php?t=7174

TinyCOBOL Setup
Details on how to use the TinyCOBOL compiler from inside Zeus can be found here: http://www.zeusedit.com/zforum/viewtopic.php?p=11245

Cheers Jussi
Last edited by jussij on Wed Jul 09, 2014 11:35 pm, edited 5 times in total.
akashraog
Posts: 6
Joined: Fri Dec 26, 2008 6:10 am

Post by akashraog »

Thanks Jussi for ur elaborate explanation...
I was trying to install using the procedure described by you but the installer never installs as.exe. I have tried so many times..

Can u please send the as.exe as an attachment at akashraog@yahoo.co.in?

Thanks for all your help.
Ragards,
Akash
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Can u please send the as.exe as an attachment
This is only one of many files that needs to be installed so sending it by attachement will not help.

The as.exe should have be installed by step number 5.

To clarify this step, you need to go to this link below where you will find the MinGW-5.1.4.exe file:

http://sourceforge.net/project/showfile ... _id=595197

You need to download and run this istaller into the c:\mingw folder and it will install the whole mingw compiler which includes the missing as.exe file.

Cheers Jussi
akashraog
Posts: 6
Joined: Fri Dec 26, 2008 6:10 am

Post by akashraog »

My test.cobol program:
IDENTIFICATION DIVISION.
PROGRAM-ID. ShortestProgram.

PROCEDURE DIVISION.
DisplayPrompt.
DISPLAY "I did it".
STOP RUN.

and when I get the following error when i try to compile the test program...
--------------------Configuration: <default settings> - Release--------------------
Using document type compiler options....

C:\MinGw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file roses.exe: Permission denied
collect2: ld returned 1 exit status
warning: TinyCOBOL compiler resource file 'C:/MinGW\htcobolrc' not found - using internal defaults

Can you help???
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Where does the name roses.exe come form :?:

In the use the Zeus Options, Editor Options menu and in the General section and turn on the Help debug tools and macros check box option.

Then rerun the compile and post the Zeus output produced to the end of this thread.

Cheers Jussi
akashraog
Posts: 6
Joined: Fri Dec 26, 2008 6:10 am

Post by akashraog »

Roses.cob is the name of the test file that i had created...
here is the compile output that you had asked to post:
---------------------------------------------------------------------------
**** Unregistered Software. To be used for evaluation purposes only. ****
---------------------------------------------------------------------------

Debug: Changed to the 'C:\Program Files\Zeus\zExample\' directory supplied
Debug: Command: htcobol.exe "C:\Program Files\Zeus\zExample\roses.cob"
--------------------Configuration: <default settings> - Release--------------------
Using document type compiler options....

Debug: Command Line: C:\Windows\system32\cmd.exe /c htcobol.exe "C:\Program Files\Zeus\zExample\roses.cob"
Debug: Started Process ID: 0xB0C

C:\MinGw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file roses.exe: Permission denied
collect2: ld returned 1 exit status
warning: TinyCOBOL compiler resource file 'C:/MinGW\htcobolrc' not found - using internal defaults

Thanks,
Akash
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

In the instructions I posted I defined this command line:
htcobol.exe -M "$fn"
I don't see the -M options in the command line of the debug output that you posted :?

Also a permission denied error usually means the operating system is not allowing you to write to the output file.

This usually means the file is locked or your user id does not have the correct permissions to write to that folder.

Cheers Jussi
akashraog
Posts: 6
Joined: Fri Dec 26, 2008 6:10 am

Post by akashraog »

I corrected the -M in the compiler options.

But how do u correct the PERMISSION issue? I am using windows Vista. And i am the admin. Tell me how to give access to Zues so that i can run the EXE?

Thanks for all your help.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

But how do u correct the PERMISSION issue?
It probably is not a good idea changing the permissions. But looking at the debug output you posted I think the problem might be that Vista is protecting the C:\Program Files\ folder.

In the debug output there is this line:

Code: Select all

C:\Program Files\Zeus\zExample\roses.cob

I would try creating a new c:\work\ folder and then saving this file to c:\work\roses.cob to see if that helps with the permissions.

Cheers Jussi
Post Reply